My Countingdown

Showing posts with label IPv6. Show all posts
Showing posts with label IPv6. Show all posts

Tuesday, December 13, 2011

Lab 5. IPv6 Routing – EIGRP


R1#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 1::1/128

interface FastEthernet0/0
 ipv6 address 12::1/126                      
 ipv6 enable

R2#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 2::2/128

interface FastEthernet0/0
 ipv6 address 12::2/126
 ipv6 enable

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

R1(config)#ipv6 router eigrp 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#no shut                                      ---- -> must be activated in EIGRP IPv6

R1(config-rtr)#int lo0
R1(config-if)#ipv eigrp 1

R1(config-if)#int f0/0
R1(config-if)#ipv eigrp 1

R2(config)#ipv6 router eigrp 1
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#no shut

R2(config-rtr)#int lo0
R2(config-if)#ipv eigrp 1

R2(config-if)#int f0/0
R2(config-if)#ipv eigrp 1

*Mar  1 00:15:56.683: %DUAL-5-NBRCHANGE: IPv6-EIGRP(0) 1: Neighbor FE80::C200:5FF:FEAC:0 (FastEthernet0/0) is up: new adjacency

Yes… the neighbor adjacency already up. Check the routing table

R1(config-if)#do sh ipv rou
IPv6 Routing Table - 5 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
D   2::2/128 [90/409600]
     via FE80::C201:5FF:FEAC:0, FastEthernet0/0
C   12::/126 [0/0]
     via ::, FastEthernet0/0
L   12::1/128 [0/0]
     via ::, FastEthernet0/0
L   FF00::/8 [0/0]
     via ::, Null0

Make sure ping is ok

R1(config-if)#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/24/56 ms

Lab 4. IPv6 Routing – OSPFv3



R1#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 1::1/128

interface FastEthernet0/0
 ipv6 address 12::1/126                      
 ipv6 enable

R2#
ipv6 unicast-routing

interface Loopback0
 ipv6 address 2::2/128

interface FastEthernet0/0
 ipv6 address 12::2/126
 ipv6 enable


We can do ping ip p2p. But we can not ping to loopback from other router because no any routing table.
 Let’s activate the OSPF. Create ipv6 router ospf first and must have router-id! After creating ipv6 router ospf, need to activate on interface

R1(config)#ipv6 router ospf 1
R1(config-rtr)#
*Mar  1 00:07:23.095: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,
please configure manually
R1(config-rtr)#router-id 1.1.1.1

R1(config)#int lo0
R1(config-if)#ipv6 ospf 1 area 0

R1(config-if)#int f0/0
R1(config-if)#ipv6 ospf 1 area 0

R2(config-if)#ipv6 router ospf 2
R2(config-rtr)#
*Mar  1 00:08:12.835: %OSPFv3-4-NORTRID: OSPFv3 process 2 could not pick a router-id,
please configure manually
R2(config-rtr)#router-id 2.2.2.2

R2(config)#int lo0
R2(config-if)#ipv6 ospf 2 area 0

R2(config-if)#int f0/0
R2(config-if)#ipv6 ospf 2 area 0

*Mar  1 00:10:14.295: %OSPFv3-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done

Great… OSPF adjacency already up. Let’s check ospfv3 neighbor

R1(config-if)#do sh ipv ospf nei
Neighbor ID     Pri   State                   Dead Time   Interface ID    Interface
2.2.2.2              1      FULL/BDR        00:00:30       4                     FastEthernet0/0

R2(config-if)#do sh ipv ospf nei

Neighbor ID     Pri   State                 Dead Time   Interface ID    Interface
1.1.1.1              1      FULL/DR         00:00:35     4                      FastEthernet0/0

Check routing table and make sure the ping is working

R2(config-if)#do sh ipv rou
IPv6 Routing Table - 5 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
O   1::1/128 [110/10]
     via FE80::C200:5FF:FEAC:0, FastEthernet0/0
LC  2::2/128 [0/0]
     via ::, Loopback0
C   12::/126 [0/0]
     via ::, FastEthernet0/0
L   12::2/128 [0/0]
     via ::, FastEthernet0/0
L   FF00::/8 [0/0]
     via ::, Null0

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

Lab 3. IPv6 Routing – RIPnG



In IPv6 there are dynamic routing IGP i.e. RIPnG, OSPFv3, and EIGRP

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
  
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

Let’s activate the RIP in interface

R1(config)#int f0/0
R1(config-if)#ipv6 rip 1 enable
R1(config-if)#int lo0
R1(config-if)#ipv6 rip 1 ena

R2(config)#int f0/0
R2(config-if)#ipv6 rip 1 ena
R2(config-if)#int lo0
R2(config-if)#ipv rip 1 ena

Let’s check routing table and make sure R2 can ping loopback R1 and vice versa

R2(config-if)#do sh ipv rou
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
R   1::1/128 [120/2]
     via FE80::1, FastEthernet0/0
LC  2::2/128 [0/0]
     via ::, Loopback0
C   12::/126 [0/0]
     via ::, FastEthernet0/0
L   12::2/128 [0/0]
     via ::, FastEthernet0/0
C   21::/64 [0/0]
     via ::, FastEthernet0/0
L   21::2/128 [0/0]
     via ::, FastEthernet0/0
L   FF00::/8 [0/0]
     via ::, Null0

R2(config-if)#do ping 1::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/30/64 ms

Lab 1. IPv6

To activate IPv6, please do command ‘ipv6 unicast-routing’
In IPv6 there are
  • Link-Local Address. This IP used for neighbor discovery. The IP begin with FE80::/10
  • Global Unicast Address. This is the same as IP public in IPv4
  • EUI-64 Address.
There are 2 ways to create link-local unicast address:
  1. Automatic
  2. Manual
Let’s do the lab


R1#
ipv6 unicast-routing                        ----- > must activate to be able routing in ipv6

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

From this lab, we can see that in IPv6, interface can have multiple IPv6 address
Lets’s check and verify the IPv6

R1(config-if)#do sh ipv6 int brie
FastEthernet0/0            [up/up]
    FE80::1                                           - - > link-local unicast address
    12::1                                                --- -> global unicast address
    21::1                                                --- -> EUI-64 address
FastEthernet0/1            [administratively down/down]
Loopback0                    [up/up]
    FE80::C200:1FFF:FEC8:0
    1::1

R2(config-if)#do sh ipv6 int brie
FastEthernet0/0            [up/up]
    FE80::2
    12::2
    21::2
FastEthernet0/1            [administratively down/down]
Loopback0                  [up/up]
    FE80::C201:1FFF:FEC8:0
    2::2

Let’s try ping IP P2P

R2(config-if)#do ping 12::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/48 ms

R2(config-if)#do ping 21::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 21::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/23/56 ms

R1(config-if)#do ping FE80::1
Output Interface: F0/0
% Invalid interface. Use full interface name without spaces (e.g. Serial0/1)
Output Interface: fastethernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::1, timeout is 2 seconds:
Packet sent with a source address of FE80::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms