IPV6 and OSPFv3

ipv6

In this article I will show a simple ospfv3 ipv6 example. For this article I used the same diagram as the earlier OSPF post but this time I added ipv6 addresses, see below :

ipv6

For ipv6 to work over frame-relay we need to map the physical ipv6 address but also the link-local ipv6 address. See below the link-local address of router R1.

R1 :


R1#sh ipv6 interface ser1/0
Serial1/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::CE00:BFF:FE40:20
  Global unicast address(es):
    2001::1, subnet is 2001::/64
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::5
    FF02::1:FF00:1
    FF02::1:FF40:20
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ND DAD is not supported
  ND reachable time is 30000 milliseconds
  Hosts use stateless autoconfig for addresses.
    

As you can see this address is FE80::CE00:BFF:FE40:20 for this interface. For the link-local mappings under the interface we could take a shortcut by modifying the link-local address like so :

R1 :


R1(config-if)#ipv6 address fe80::1 link-local
R1(config-if)#do sh ipv6 int ser1/0
Serial1/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::1
  Global unicast address(es):
    2001::1, subnet is 2001::/64
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::5
    FF02::6
    FF02::1:FF00:1
  MTU is 1500 bytes
  ICMP error messages limited to one every 100 milliseconds
  ICMP redirects are enabled
  ND DAD is not supported
  ND reachable time is 30000 milliseconds
  Hosts use stateless autoconfig for addresses.
    

As you can see this can save us some time when we do the frame-relay map ipv6 commands.

For the rest of the configs see below :

R1 :


ipv6 unicast-routing
!
interface Loopback10
 no ip address
 ipv6 address 2001:100::101/64
 ipv6 ospf 1 area 0
!
interface Serial1/0
 ip address 10.10.10.1 255.255.255.0
 encapsulation frame-relay
 ip ospf priority 255
 ipv6 address 2001::1/64
 ipv6 address FE80::1 link-local
 ipv6 ospf priority 255
 ipv6 ospf neighbor FE80::3
 ipv6 ospf neighbor FE80::2
 ipv6 ospf 1 area 0
 serial restart-delay 0
 frame-relay map ipv6 FE80::2 102 broadcast
 frame-relay map ipv6 FE80::3 103 broadcast
 frame-relay map ip 10.10.10.2 102 broadcast
 frame-relay map ip 10.10.10.3 103 broadcast
 frame-relay map ipv6 2001::2 102 broadcast
 frame-relay map ipv6 2001::3 103 broadcast
 no frame-relay inverse-arp
!
ipv6 router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
    

R2 :


ipv6 unicast-routing
!
interface Loopback100
 no ip address
 ipv6 address 2001:200::102/64
 ipv6 ospf 1 area 0
!
interface Serial1/0
 ip address 10.10.10.2 255.255.255.0
 encapsulation frame-relay
 ip ospf priority 0
 ipv6 address 2001::2/64
 ipv6 address FE80::2 link-local
 ipv6 enable
 ipv6 ospf priority 0
 ipv6 ospf 1 area 0
 serial restart-delay 0
 frame-relay map ipv6 FE80::3 201 broadcast
 frame-relay map ip 10.10.10.1 201 broadcast
 frame-relay map ip 10.10.10.3 201 broadcast
 frame-relay map ipv6 2001::1 201 broadcast
 frame-relay map ipv6 2001::3 201 broadcast
 frame-relay map ipv6 FE80::1 201 broadcast
 no frame-relay inverse-arp
!
ipv6 router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
    

R3 :


ipv6 unicast-routing
!
interface Loopback100
 no ip address
 ipv6 address 2001:300::103/64
 ipv6 ospf 1 area 0
!
interface Serial1/0
 ip address 10.10.10.3 255.255.255.0
 encapsulation frame-relay
 ip ospf priority 0
 ipv6 address 2001::3/64
 ipv6 address FE80::3 link-local
 ipv6 enable
 ipv6 ospf priority 0
 ipv6 ospf 1 area 0
 serial restart-delay 0
 frame-relay map ipv6 FE80::2 301 broadcast
 frame-relay map ip 10.10.10.1 301 broadcast
 frame-relay map ip 10.10.10.2 301 broadcast
 frame-relay map ipv6 2001::1 301 broadcast
 frame-relay map ipv6 2001::2 301 broadcast
 frame-relay map ipv6 FE80::1 301 broadcast
 no frame-relay inverse-arp
!
ipv6 router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
    

Let’s take a look at the “sh ipv6 route ospf” output :

R1 :


R1#sh ipv6 route ospf
IPv6 Routing Table - 8 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:200::102/128 [110/64]
     via FE80::2, Serial1/0
O   2001:300::103/128 [110/64]
     via FE80::3, Serial1/0
    

R2 :


R2#sh ipv6 route ospf
IPv6 Routing Table - 8 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:100::101/128 [110/64]
     via FE80::1, Serial1/0
O   2001:300::103/128 [110/64]
     via FE80::3, Serial1/0
    

R3 :


R3#sh ipv6 route ospf
IPv6 Routing Table - 8 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:100::101/128 [110/64]
     via FE80::1, Serial1/0
O   2001:200::102/128 [110/64]
     via FE80::2, Serial1/0
    

Leave a comment

Your comment