ipv6 unicast-routing ! interface Loopback0 no ip address ipv6 address 3333::3333/128 ! interface Loopback1 no ip address ipv6 address 4444::4444/128 ! interface Ethernet0/0 no ip address duplex auto ipv6 address 2002::3/64 ! router eigrp rancho ! address-family ipv6 unicast autonomous-system 1 ! af-interface default // eigrp默认将所有ipv6接口加入eigrp计算 shutdown // 将所有接口移除eigrp exit-af-interface ! af-interface Loopback0 no shutdown // 指定的端口加入eigrp exit-af-interface ! af-interface Ethernet0/0 no shutdown // 指定的端口加入eigrp, 这样lp1就没有加入eigrp,R1上就没有对应的路由 exit-af-interface ! topology base exit-af-topology eigrp router-id 3.3.3.3 exit-address-family
查看R1上的ipv6路由表:
1 2 3
R1#show ipv6 route | begin 3333 OE2 3333::3333/128 [110/20] via FE80::A8BB:CCFF:FE00:2000, Ethernet0/0
在R1上ping R3的lp0:
1 2 3 4 5 6
R1#ping 3333::3333 source 1111::1111 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3333::3333, timeout is 2 seconds: Packet sent with a source address of 1111::1111 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms