Sunday, 28 October 2012

IPv6: Configuring OSPFv3


IPv6: Configuring OSPFv3

 

·         OSPF for IPV6

·         Based on OSPFv2, with some enhancements

·         Distributes IPV6 prefixes.

·         Runs directly over IPV6.

·         Sources packets from the link-local address

·         OSPFv3 is not backward compatible with OSPFv2, So if you want to run OSPF to route both IPv4 and IPv6, you must run both OSPFv2 and OSPFv3.

 

·         OSPF v3 Router ID must be set

o    Router-ID is always IPv4 address.

o    Use ‘ROUTER-ID’ command, if no IPv4 configured.

 

·         Let me configure OSPFv3 between 2 routers

 

R1----fa0/0-------------------fa0/0-----R2

2001:12::1----------------------2001:12::2

 

·         R1’s Loopback0: 2001:1::1

·         R2’s loopback0: 2001:2::2

 

R1(config)#ipv6 router ospf 1

R1(config-rtr)#

*Mar  1 04:20:23.038: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,

please configure manually

 

·         This is because OPSFv3 router-id is always ipv4 address and I don’t have any IPv4 address configured as of now in the router.

 

R1(config-rtr)#router-id 1.1.1.1

R1(config-rtr)#

R1(config-rtr)#int fa0/0

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

R1(config-if)#int loop0

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

R1(config-if)#

 

R2(config)#ipv6 router ospf 1

R2(config-rtr)#

*Mar  1 04:26:38.602: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,

please configure manually

R2(config-rtr)#router-id 2.2.2.2

R2(config-rtr)#int fa0/0

R2(config-if)#ipv6 ospf 1 area 0

R2(config-if)#int loop0

R2(config-if)#ipv6 ospf 1 area 0

R2(config-if)#

 

R1#show ipv6 ospf neighbor

 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

2.2.2.2           1   FULL/DR         00:00:38    4               FastEthernet0/0

R1#

 

R2#show ipv6 ospf neighbor

 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

1.1.1.1           1   FULL/BDR        00:00:39    4               FastEthernet0/0

R2#

 

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

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

     via ::, Loopback0

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

     via ::, Loopback0

O   2001:2::2/128 [110/10]

     via FE80::C001:25FF:FE30:0, FastEthernet0/0

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

     via ::, FastEthernet0/0

L   2001:12::1/128 [0/0]

     via ::, FastEthernet0/0

L   FE80::/10 [0/0]

     via ::, Null0

L   FF00::/8 [0/0]

     via ::, Null0

R1#

 

R2#show ipv6 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

O   2001:1::1/128 [110/10]

     via FE80::C000:25FF:FE30:0, FastEthernet0/0

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

     via ::, Loopback0

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

     via ::, Loopback0

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

     via ::, FastEthernet0/0

L   2001:12::2/128 [0/0]

     via ::, FastEthernet0/0

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

     via ::, Loopback1

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

     via ::, Loopback1

L   FE80::/10 [0/0]

     via ::, Null0

L   FF00::/8 [0/0]

     via ::, Null0

R2#

 

R1#ping 2001:2::2

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/32 ms

R1#

 

R2#ping 2001:1::1

 

Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/14/28 ms

R2#

 

Observation:

·         OSPF area 0 has been configured between R1 and R2

·         Neighbor relationship is up

·         R2 and DR and R1 is BDR

·         R1 has advertised its loopback 0 2001:1::1 into OSPF

·         R2 has advertised its loopback 0 2001:2::2 into OSPF

·         R1 and R2 able to ping the other routers respective loopbacks.

·         OSPF routes are reachable via the link-local address of the adjacent router

 

·         Let me see the link-local address for FA0/0 in R1 and R2:

 

R1#show ipv6 int fa0/0

FastEthernet0/0 is up, line protocol is up

  IPv6 is enabled, link-local address is FE80::C000:25FF:FE30:0

  Global unicast address(es):

    2001:12::1, subnet is 2001:12::/64

  Joined group address(es):

    FF02::1

    FF02::2

    FF02::5

    FF02::6

    FF02::1:FF00:1

    FF02::1:FF30:0

  MTU is 1500 bytes

  ICMP error messages limited to one every 100 milliseconds

  ICMP redirects are enabled

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND advertised reachable time is 0 milliseconds

  ND advertised retransmit interval is 0 milliseconds

  ND router advertisements are sent every 200 seconds

  ND router advertisements live for 1800 seconds

  Hosts use stateless autoconfig for addresses.

R1#

 

R2#show ipv6 int fa0/0

FastEthernet0/0 is up, line protocol is up

  IPv6 is enabled, link-local address is FE80::C001:25FF:FE30:0

  Global unicast address(es):

    2001:12::2, subnet is 2001:12::/64

  Joined group address(es):

    FF02::1

    FF02::2

    FF02::5

    FF02::6

    FF02::1:FF00:2

    FF02::1:FF30:0

  MTU is 1500 bytes

  ICMP error messages limited to one every 100 milliseconds

  ICMP redirects are enabled

  ND DAD is enabled, number of DAD attempts: 1

  ND reachable time is 30000 milliseconds

  ND advertised reachable time is 0 milliseconds

  ND advertised retransmit interval is 0 milliseconds

  ND router advertisements are sent every 200 seconds

  ND router advertisements live for 1800 seconds

  Hosts use stateless autoconfig for addresses.

R2#

No comments:

Post a Comment