IPV66to4隧道

实验拓扑:

 


 

设备配置:

R1

1.   1步骤1配置路由器R1

R1(config)#interface Serial0/0

R1(config-if)#ip address 12.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config)#interface Serial0/1

R1(config-if)#ip address 13.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config)#router eigrp 90

R1(config-router)#network 12.1.1.1 0.0.0.0

R1(config-router)#network 13.1.1.1 0.0.0.0

R1(config-router)#no auto-summary

 

2.   (2)步骤2:配置路由器R2

R2(config)#ipv6 unicast-routing

R2(config)#ipv6 router rip cisco

R2(config)#interface tunnel 1

R2(config-if)#ipv6 address 2001:23::2/64

R2(config-if)#ipv6 rip cisco enable

R2(config-if)#tunnel source 2.2.2.2

R2(config-if)#tunnel destination 3.3.3.3

 

R2(config)#interface Loopback0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

R2(config)#interface Serial0/0

R2(config-if)#ip address 12.1.1.2 255.255.255.0

 

R2(config)#interface Serial0/1

R2(config)#ipv6 address 2001:24::2/64

R2(config-if)#ipv6 rip cisco enable

 

R2(config)#router eigrp 90

R2(config-router)#network 2.2.2.2 0.0.0.0

R2(config-router)#network 12.1.1.2 0.0.0.0

R2(config-router)#no auto-summary

 

3.   (3)步骤3:配置路由器R3

R3(config)#ipv6 unicast-routing               

R3(config)#interface Loopback0

R3(config-if)#ip address 3.3.3.3 255.255.255.0

R3(config)#ipv6 router rip cisco

R3(config)#interface tunnel 1

R3(config-if)#ipv6 address 2001:23::3/64

R3(config-if)#ipv6 rip cisco enable

R3(config-if)#tunnel source 3.3.3.3

R3(config-if)#tunnel destination 2.2.2.2

R3(config)#interface Serial0/3

R3(config-if)#ipv6 address 2001:35::3/64

R3(config-if)#ipv6 rip cisco enable

R3(config-if)#no shut

        

R3(config)#interface Serial0/1

R3(config-if)#ip address 13.1.1.3 255.255.255.0

R3(config-if)#no shut

 

R3(config)#router eigrp 90

R3(config-router)#network 3.3.3.3 0.0.0.0

R3(config-router)#network 13.1.1.3 0.0.0.0

R3(config-router)# no auto-summary

        

 

4.   (4)步骤4:配置路由器R4

R4(config)#ipv6 unicast-routing

R4(config)#ipv6 router rip cisco

R4(config)#interface Loopback1

R4(config-if)#ipv6 address 2001:4::4/64

R4(config)#ipv6 rip cisco enable

R4(config)#interface Serial0/2

R4(config-if)#ipv6 address 2001:24::4/64

R4(config-if)# ipv6 rip cisco enable

 

5.   (5)步骤5:配置路由器R5

R5(config)#ipv6 unicast-routing

R5(config)#ipv6 router rip cisco

R5(config)#interface Loopback1

R5(config-if)#ipv6 address 2001:5::5/64

R5(config-if)# ipv6 rip cisco enable

R5(config)#interface Serial0/3

R5(config-if)#ipv6 address 2001:35::5/64

R5(config-if)# ipv6 rip cisco enable

R5(config-if)#no shut

实验调试

n         R4#ping 2001:5::5  

R4#ping 2001:5::5

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2001:5::5, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 120/200/392 ms   

 

 

n         R5#show ipv6 route

R5#show ipv route

IPv6 Routing Table - 9 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP

       U - Per-user Static route

       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary

       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2

       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2

R   2001:4::/64 [120/4]

     via FE80::CE03:12FF:FE24:10, Serial0/3

C   2001:5::/64 [0/0]

     via ::, Loopback0

L   2001:5::5/128 [0/0]

     via ::, Loopback0

R   2001:23::/64 [120/2]

     via FE80::CE03:12FF:FE24:10, Serial0/3

R   2001:24::/64 [120/3]

     via FE80::CE03:12FF:FE24:10, Serial0/3

C   2001:35::/64 [0/0]

     via ::, Serial0/3

L   2001:35::5/128 [0/0]

     via ::, Serial0/3

L   FE80::/10 [0/0]

     via ::, Null0

L   FF00::/8 [0/0]

     via ::, Null0