6to4 tunnel

24
CONFIGURATION [email protected]

description

 

Transcript of 6to4 tunnel

Page 1: 6to4 tunnel

CONFIGURATION [email protected]

Page 2: 6to4 tunnel
Page 3: 6to4 tunnel
Page 4: 6to4 tunnel

6TO4 TOPOLOGY

Page 5: 6to4 tunnel

R1 GIG 0/0: 200.100.192.1/24 GIG 1/0:2001:ABCD:1234::11/64

R2 GIG 0/0:200.100.192.2/24 GIG 1/0:2003:ABCD:1234::1/64

R4 GIG0/0:2003:ABCD:1234::2/64

R3 GIG 0/0:2001:ABCD:1234::2/64

Page 6: 6to4 tunnel

R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# R1(config)# R1(config)#int gig 0/0 R1(config-if)#ip add 200.100.192.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#exit R1(config)# R1(config-if)# R1(config-if)#int gig 1/0 R1(config-if)# R1(config-if)#ipv6 add 2001:abcd:1234::1/64 R1(config-if)#no shut R1(config-if)# *Sep 3 22:45:04.219: %LINK-3-UPDOWN: Interface GigabitEthernet1/0, changed state to up *Sep 3 22:45:05.219: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0, changed state to up

Page 7: 6to4 tunnel

R2(config)# R2(config)#I R2(config)#int gig 0/0 R2(config)#ip add 200.100.19 2.2 255.255.255.0 R2(config-i R2(config-if)#no shut R2(config-if)# R2(config-if)# R2(config-if)# *Sep 3 22:10:42.947: %LINK-3-UPDOWN: Interface GigabitEthernet1/0, changed state to up changed state to up R2(confg-if)#END

Page 8: 6to4 tunnel

R2(config)# R2(config)#Iipv6 unicast-routing R2(config)#int gig 1/0 R2(config)#iipv6 enable R2(config-if)#ipv6 add 2003:abcd:1234::1/64 R2(config-if)#no shut R2(config-if)# R2(config-if)# R2(config-if)# *Sep 3 22:10:42.947: %LINK-3-UPDOWN: Interface GigabitEthernet1/0, changed state to up changed state to up R2(confg-if)#END

Page 9: 6to4 tunnel

R3#config t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# R3(config)#ipv6 uni R3(config)#ipv6 unicast-routing R3(config)#int gig 0/0 R3(config-if)#ipv6 add 2001:abcd:1234::2/64 R3(config-if)#no shut R3(config-if)#ex *Sep 3 22:51:27.599: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up R3(config-if)#exit R3(config)# *Sep 3 22:51:27.603: %ENTITY_ALARM-6-INFO: CLEAR INFO Gi0/0 Physical Port Administrative State Down changed state to up R3(config)#

Page 10: 6to4 tunnel

R4#config t R4(config)# R4(config)# R4(config)#ipv6 uni R4(config)#ipv6 unicast-routing R4(config)#int gig 0/0 R4(config-if)#ipv6 add 2001:abcd:1234::2/64 R4(config-if)#no shut R4(config-if)# R4(config-if)#end R4# *Sep 3 22:13:15.715: %SYS-5-CONFIG_I: Configured from console by console

Page 11: 6to4 tunnel

Configure tunnel 0

Page 12: 6to4 tunnel

R1(config-if)# R1(config-if)#int tunn 0 R1(config-if)#ipv6 add 2002:c864:c001::1/32 R1(config-if)#no shut R1(config-if)# R1(config-if)# R1(config-if)# R1(config-if)# R1(config-if)#tunn so R1(config-if)#tunn source 200.100.192.1 R1(config-if)#tunnel mode ipv6ip 6to4 R1(config-if)# *Sep 3 22:59:36.991: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up R1(config-if)#end R1# *Sep 3 22:59:43.819: %SYS-5-CONFIG_I: Configured from console by console R1#

Page 13: 6to4 tunnel

R2(config-if)# R2(config-if)#int tunn 0 R2(config-if)#ipv6 add 2002:c864:c002::1/32 R2(config-if)#no shut R2(config-if)# R2(config-if)# R2(config-if)# R2(config-if)# R2(config-if)#tunn so R2(config-if)#tunn source 200.100.192.2 R2(config-if)#tunnel mode ipv6ip 6to4 R2(config-if)# *Sep 3 22:59:36.991: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up R2(config-if)#end R2# *Sep 3 22:59:43.819: %SYS-5-CONFIG_I: Configured from console by console R2#

Page 14: 6to4 tunnel

Configure static route at TUNNEL 0

R1 ipv6 route 2002:c864:C002::1/32 tunnel 0 ipv6 route 2003:abcd:1234::/64 2002:c864:c002::1

R2 ipv6 route 2002:c864:C001::1/32 tunnel 0 ipv6 route 2001:abcd:1234::/64 2002:c864:c001::1

Page 15: 6to4 tunnel

R2#show ipv6 route IPv6 Routing Table - 7 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 S 2001:ABCD:1234::/64 [1/0] via 2002:C864:C001::1 C 2002:C864::/32 [0/0] via ::, Tunnel0 L 2002:C864:C002::1/128 [0/0] via ::, Tunnel0 C 2003:ABCD:1234::/64 [0/0] via ::, GigabitEthernet1/0 L 2003:ABCD:1234::1/128 [0/0] via ::, GigabitEthernet1/0 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0

Page 16: 6to4 tunnel

AFTER CONFIGURE STATIC ROUTE PLS VERIFY BY PING IPV6 TUNN 0

R1# ping 2002:C864:C002::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2002:C864:C002::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 384/440/480 ms R1# ping 2002:C864:C002::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2002:C864:C002::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 356/392/476 ms R1#

Page 17: 6to4 tunnel
Page 18: 6to4 tunnel

R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# R1(config)# R1(config)# R1(config)#router ospf 1 R1(config-router)#router-id 1.1.1.1 R1(config-router)#redistribute static % Only classful networks will be redistributed R1(config-router)#end R1#

Page 19: 6to4 tunnel

R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# R1(config)# R1(config)# R1(config)#int gig 1/0 R1(config-if)# R1(config-if)#ipv6 ospf 1 area 0 OSPFv3: No IPV6 enabled on this interface R1(config-if)#ipv6 ena R1(config-if)#ipv6 enable R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#no shut R1(config-if)#end R1#

Page 20: 6to4 tunnel

R3#config t Enter configuration commands, one per line. End with CNTL/Z. R3(config)#ipv6 unicast-routing R3(config)# R3(config)#ipv6 router ospf 1 R3(config-rtr)# *Sep 3 23:39:19.431: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually R3(config-rtr)#rou R3(config-rtr)#router-id 3.3.3.3 R3(config-rtr)#auto-cost R3(config-rtr)#end R3#

Page 21: 6to4 tunnel

R3# R3# *Sep 3 23:39:48.763: %SYS-5-CONFIG_I: Configured from console by console R3#config t Enter configuration commands, one per line. End with CNTL/Z. R3(config)#int gig 0/0 R3(config-if)#ipv6 en R3(config-if)#ipv6 enable R3(config-if)#ipv6 ospf 1 area 0 R3(config-if)#no shut R3(config-if)#end R3# *Sep 3 23:40:26.611: %SYS-5-CONFIG_I: Configured from console by console R3#

Page 22: 6to4 tunnel

R2(config)# R2(config)#ipv6 unicast-routing R2(config)#ipv6 router ospf 1 R2(config-rtr)#rou R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#red R2(config-rtr)#redistribute st R2(config-rtr)#redistribute static R2(config-rtr)#auto-cost R2(config-rtr)#int gig 1/0 R2(config-if)#ipv6 ospf 1 area 0 R2(config-if)#no shut R2(config-if)#end

Page 23: 6to4 tunnel

R4(config)# R4(config)# R4(config)#ipv6 uni R4(config)#ipv6 unicast-routing R4(config)#ipv6 router ospf 1 R4(config-rtr)#r *Sep 4 00:04:00.015: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually R4(config-rtr)#rou R4(config-rtr)#router-id 4.4.4.4 R4(config-rtr)#au R4(config-rtr)#auto-cost R4(config-rtr)#int gig 0/0 R4(config-if)#ipv6 ospf 1 area 0 R4(config-if)#no shut R4(config-if)# *Sep 4 00:04:39.775: %OSPFv3-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/0 from LOADING to FULL, Loading Done R4(config-if)#end

Page 24: 6to4 tunnel

R4#ping 2001:ABCD:1234::2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2001:ABCD:1234::2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 868/928/1100 ms R4#ping 2001:ABCD:1234::2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2001:ABCD:1234::2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 800/861/892 ms R4# R4#

PINGING R3 FROM R4