![在路由器上配置IPV6(下)--配置GRE使IPV6在IPV4环境下通信_IPV6](https://s2.51cto.com/attachment/200705/200705151179224061484.jpg?x-oss-process=image/resize,m_fixed,w_1184)
R1
conf t
ipv uncast-routing
int l 0
ip ad 1.1.1.1 255.255.255.255
int s 2/0
ip ad 10.1.1.1 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.2 102 b
no shut
int f 0/0
ipv ad fec0:0:0:1::1/64
ipv rip cisco enable
no shut
int tunnel 0
ipv unnumber f 0/0
tunnel source l 0
tunnel destination 2.2.2.2
tunnel mode ipv6ip
router rip
ver 2
no au
net 1.0.0.0
net 10.0.0.0
ipv router rip cisco
end
R2
conf t
ipv uncast-routing
int l 0
ip ad 2.2.2.2 255.255.255.255
int s2/0
ip ad 10.1.1.2 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.1 201 b
no shut
int f 1/0
ipv ad fec0:0:0:2::2/64
no shut
int tunnel 0
ipv unnumber f1/0
tunnel source l 0
tunnel destination 1.1.1.1
tunnel mode ipv6ip
ipv rip ccie enable
router rip
ver 2
no au
net 10.0.0.0
net 2.0.0.0
ipv router rip ccie
end
R3
conf t
ipv uncast-routing
int f 1/0
ipv ad fec0:0:0:2::3/64
no shut
ipv rip ccie enable
ipv router rip ccie
end
R4
conf t
ipv uncast-routing
int f 0/0
ipv ad fec0:0:0:1::4/64
no shut
ipv rip cisco enable
ipv router rip cisco
end
R3#sh ipv route rip
IPv6 Routing Table - 5 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 FEC0:0:0:1::/64 [120/3]
via FE80::C800:5FF:FE44:1C, FastEthernet1/0
R3#ping fec0:0:0:1::1
Sending 5, 100-byte ICMP Echos to FEC0:0:0:1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/67/204 ms
R3#ping fec0:0:0:1::4
Sending 5, 100-byte ICMP Echos to FEC0:0:0:1::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/68/172 ms
在R4上校验
R4#sh ipv route rip
IPv6 Routing Table - 5 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 FEC0:0:0:2::/64 [120/3]
via FE80::C800:EFF:FEC4:0, FastEthernet0/0
R4#ping fec0:0:0:2::2
Sending 5, 100-byte ICMP Echos to FEC0:0:0:2::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/50/136 ms
R4#ping fec0:0:0:2::3
Sending 5, 100-byte ICMP Echos to FEC0:0:0:2::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/68/140 ms