My Countingdown

Tuesday, December 13, 2011

Lab 2. IPv6 Routing – Static



R1#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 1::1/128

interface FastEthernet0/0
 ipv6 address FE80::1 link-local          --- -> create link-local unicast address manually
 ipv6 address 12::1/126                       --- -> create global unicast address
 ipv6 address 21::/64 eui-64                --- ->  create EUI-64 Address
 ipv6 address autoconfig                     --- -> create link-local automatically
 ipv6 enable

R2#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 2::2/128

interface FastEthernet0/0
 ipv6 address FE80::2 link-local
 ipv6 address 12::2/126
 ipv6 address 21::/64 eui-64
 ipv6 address autoconfig
 ipv6 enable

Previous lab, we can do ping ip p2p. But we can not ping to loopback from other router because no any routing table.

R1(config)#do sh ipv6 rout
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       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
       D - EIGRP, EX - EIGRP external
LC  1::1/128 [0/0]
     via ::, Loopback0
C   12::/126 [0/0]
     via ::, FastEthernet0/0
L   12::1/128 [0/0]
     via ::, FastEthernet0/0
C   21::/64 [0/0]
     via ::, FastEthernet0/0
L   21::1/128 [0/0]
     via ::, FastEthernet0/0
L   FF00::/8 [0/0]
     via ::, Null0

No any ipv6 2::2 in routing table, let’s add static route both router

R1(config)#ipv6 route 2::2/128 12::2
R2(config)#ipv6 route 1::1/128 12::1

Let’s check again the routing table

R1(config)#do sh ipv rout
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       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
       D - EIGRP, EX - EIGRP external
LC  1::1/128 [0/0]
     via ::, Loopback0
S   2::2/128 [1/0]
     via 12::2
C   12::/126 [0/0]
     via ::, FastEthernet0/0
L   12::1/128 [0/0]
     via ::, FastEthernet0/0
C   21::/64 [0/0]
     via ::, FastEthernet0/0
L   21::1/128 [0/0]
     via ::, FastEthernet0/0
L   FF00::/8 [0/0]
     via ::, Null0

Make sure the ping is ok

R1(config)#do ping 2::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/32 ms

No comments:

Post a Comment