1、1 (lo0 2001:1)R2 2001:2 (lo0 2001:2)2 R3 2001:3 (lo0 2001:3)R4 2001:4 (lo0 2001:4)OSPF规划(lo0)R1-R2(lo0) AS 0R2-R3(lo0),R4(lo0) AS 1链路方式R1-P-TO-P-R2R2-NBMA-R3,R4配置R1ipv6 unicast-routingint lo0ipv6 enableipv6 add 2001:1/64int s1/0enc framno fram inv fram map ipv6 2001:2 102 broadcastno shR22/64en fram
2、no fram inv1 201 broadcastint s1/13 213 broadcast4 214 broadcastR33/642 312 b4 312 bR44/642 412 b3 412 b协议配置ipv6 router ospf 100router-id 1.1.1.1passive-interface lo0exitipv6 ospf 100 area 0show ipv6 ospf int s1/0会看到类型是NBMA的但是在这里要求配置成点到点的ipv6 ospf network point-to-pointrouter-id 2.2.2.2ipv6 ospf 100
3、 area 1ipv6 ospf neighbor 2001:3 priority 0这时会报错 先不去管继续往下ping 2001:1.(不通)原因是下一跳不可达 封装失败ipv6 address fe80:1 link-localshow ipv6 interface s1/0会看到改变了2 link-local3 link-local4 link-localshow ipv6 router ospf 会看到地址表变了fram map ipv6 fe80:!会发现通了 但是反响仍然不通解决刚才报错的问题报错信息为需要使用link-local地址ipv6 ospf neighbor fe80
4、:4 priority 0router-id 3.3.3.3ipv6 ospf priority 0 (放弃DR)router-id 4.4.4.44 412 broadcast2 312 broadcast4 312 broadcast2 412 broadcast3 412 broadcastshow ipv6 ospf neishow ipv6 route ospf 尝试做BGProuter bgp 100bgp router-id 1.1.1.1no auno syneighbor 2001:4 remote-as 1004 up lo0add ipv6nei 2001:4 acbgp
5、 router-id 4.4.4.41 remote-as 1001 up lo0add ipv6 1 acshow ip bgp summ 会看到邻居起来了show ip bgp neighborint lo144:net 2001:show ip bgp ipv6 unicast show ip bgp ipv6 unicast会看到已经学到了路由show ipv6 router bgp 会看到已学到了4UUUU不通 原因是R2没有去往44的表向 解决办法1启动MPLS (IPV6)2 R2做BGP 做RRIPv4-to-IPv6解决办法有两种1双站 既启IPV6又启IPV4配置案例2 T
6、unnelR1和R2启用RIPng(ipv6)R4和R5启用ISIS(ipv6)R2和R4之间启用tunnelipv6 router rip testipv6 enable (可不敲)1/128ipv6 add fe80:fram map ipv 2001:2 102 bfram map ipv fe80:ipv6 rip test enableipv add 2001:2/128ipv address 2001:ipv address fe80:1 201 bipv6 rip test default-information originate(放一条缺省路由给R1)no sh show i
7、pv6 route会看到一条:路由从RIP学过来的router isisnet 49.0000.0000.0004.004/128ipv6 router isis45:fram map ip 2001:5 415 b (保证直连地址能PING通)fram map ip fe80:5 415 b (保证数据能PING通)fram map clns 415 broadcast (保证路由PING通)R5net 49.0000.0000.0005.005/1285/645 link-local4 514 b (保证直连地址能PING通)4 514 b (保证数据能PING通)fram map cln
8、s 514 broadcast (保证路由PING通)show fram mapip address 2.2.2.2 255.255.255.255ip add 23.23.23.2 255.255.255.0fram map ip 23.23.23.3 213 bip add 3.3.3.3 255.255.255.255ip add 23.23.23.3 255.255.255.0fram map ip 23.23.23.2 312 bip add 34.34.34.3 255.255.255.0en fram fram map ip 34.34.34.4 304 bip add 4.4.
9、4.4 255.255.255.255ip add 34.34.34.4 255.255.255.0fram map ip 34.34.34.3 403 bip ospf net point-to-pointrouter ospf 100net 2.2.2.2 0.0.0.0 a 0net 23.23.23.0 0.0.0.255 a 0net 3.3.3.3 0.0.0.0 a 0net 34.34.34.0 0.0.0.255 a 0net 4.4.4.4 0.0.0.0 a 0show ip ospf neishow isis neishow ipv6 router isisint t0
10、24:tunnel source lo0tunnel des 4.4.4.4tunnel mode ipv6iptunnel des 2.2.2.22int tun0show ipv6 ospf int tun0会看到模式是点到点redis rip testredis rip test include-connectedshow ipv6 ospf data看是否导入redi isis level-1-2redi connredi isis include-connectedR4需要把ospfv3导入进isis (但在视频版本不支持)R2需要把OSPF导入到RIP(由于刚才做了缺省路由所以这里可以不导)继续红色部分在这里使用默认路由ipv6 route :/0 s1/1 2001: 22.IPV6-IPV4+Tunnel实验 2012/3/20
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1