Lab 3 - Part 2 - Configuring IPv6 With OSPF
Continuing on from Part 1 of this lab, we'll now setup OSPF. To do this we will create some additional loopback interfaces with IPv6 addresses, we'll then setup OSPF to advertise these loopback interfaces to all the routers. As with Part 1 I'll only show the configuration on routers R0 and R1.
Network:

First we'll create the loopback interfaces:
R0(config)#interface loopback 1 R0(config-if)#ipv6 address 2001:0:0:20::/64 eui-64 R1(config)#interface loopback 1 R1(config-if)#ipv6 address 2001:0:0:21::/64 eui-64
Next we'll create an instance of OSPF on each router, this is fairly similar to the command you would use when setting up OSPF for IPv4. We will also set the router-id's:
R0(config)#ipv6 router ospf 1 R0(config-rtr)#router-id 10.10.10.10 R1(config)#ipv6 router ospf 1 R1(config-rtr)#router-id 1.1.1.1
Remember the router process instance number is locally significant. Next we'll configure the FastEthernet Interfaces and the Loopback Interfaces to be part of OSPF area 0:
R0(config)#interface fastethernet 0/0 R0(config-if)#ipv6 ospf 1 area 0 R0(config-if)#ipv6 ospf network broadcast R0(config)#interface fastethernet 0/1 R0(config-if)#ipv6 ospf 1 area 0 R0(config-if)#ipv6 ospf network broadcast R0(config-if)#interface loopback 1 R0(config-if)#ipv6 ospf 1 area 0 R1(config)#interface fastethernet 0/0 R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#ipv6 ospf network broadcast R1(config)#interface fastethernet 0/1 R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#ipv6 ospf network broadcast R1(config)#interface loopback 1 R1(config-if)#ipv6 ospf 1 area 0 *Mar 1 00:09:41.653: %OSPFv3-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done *Mar 1 00:09:42.130: %OSPFv3-5-ADJCHG: Process 1, Nbr 10.10.10.10 on FastEthernet0/0 from LOADING to FULL, Loading Done
You can now see the OSPF route in R0's routing table:
R0#show ipv6 route
IPv6 Routing Table - 10 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:0:0:1::/64 [0/0]
via ::, Loopback0
L 2001::1:CA00:1CFF:FE94:0/128 [0/0]
via ::, Loopback0
R 2001:0:0:2::/64 [120/2]
via FE80:1::2, FastEthernet0/0
R 2001:0:0:3::/64 [120/3]
via FE80:1::2, FastEthernet0/0
R 2001:0:0:4::/64 [120/4]
via FE80:1::2, FastEthernet0/0
C 2001:0:0:20::/64 [0/0]
via ::, Loopback1
L 2001::20:CA00:1CFF:FE94:0/128 [0/0]
via ::, Loopback1
O 2001::21:CA01:1CFF:FE94:0/128 [110/1]
via FE80:1::2, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0We'll then test connectivity:
R0#ping 2001::21:CA01:1CFF:FE94:0 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2001::21:CA01:1CFF:FE94:0, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/9/24 ms
This is our routing table on R0, once all the routers are configured:
R0#show ipv6 route
IPv6 Routing Table - 12 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:0:0:1::/64 [0/0]
via ::, Loopback0
L 2001::1:CA00:1DFF:FE4E:0/128 [0/0]
via ::, Loopback0
R 2001:0:0:2::/64 [120/2]
via FE80:1::2, FastEthernet0/0
R 2001:0:0:3::/64 [120/3]
via FE80:2::2, FastEthernet0/1
via FE80:1::2, FastEthernet0/0
R 2001:0:0:4::/64 [120/2]
via FE80:2::2, FastEthernet0/1
C 2001:0:0:20::/64 [0/0]
via ::, Loopback1
L 2001::20:CA00:1DFF:FE4E:0/128 [0/0]
via ::, Loopback1
O 2001::21:CA01:1DFF:FE4E:0/128 [110/1]
via FE80:1::2, FastEthernet0/0
O 2001::22:CA02:1DFF:FE4E:0/128 [110/2]
via FE80:1::2, FastEthernet0/0
via FE80:2::2, FastEthernet0/1
O 2001::23:CA03:1DFF:FE4E:0/128 [110/1]
via FE80:2::2, FastEthernet0/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0You'll notice two things with the routing table, the first being that OSPF has automatically added the equal cost routes to the 2001::22:CA02:1DFF:FE4E:0/128 network. Secondly is that all the OSPF routes are being advertised with a /128 bit mask. To get this working correctly we need to change the OSPF network type on the loopback interfaces:
R0(config)#interface loopback 1 R0(config-if)#ipv6 ospf network point-to-point R1(config)#interface loopback 1 R1(config-if)#ipv6 ospf network point-to-point
Now that we've done that, we can see the routing table now has the routes with a 64 bit mask.
R0#show ipv6 route
IPv6 Routing Table - 12 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:0:0:1::/64 [0/0]
via ::, Loopback0
L 2001::1:CA00:1DFF:FE4E:0/128 [0/0]
via ::, Loopback0
R 2001:0:0:2::/64 [120/2]
via FE80:1::2, FastEthernet0/0
R 2001:0:0:3::/64 [120/3]
via FE80:2::2, FastEthernet0/1
via FE80:1::2, FastEthernet0/0
R 2001:0:0:4::/64 [120/2]
via FE80:2::2, FastEthernet0/1
C 2001:0:0:20::/64 [0/0]
via ::, Loopback1
L 2001::20:CA00:1DFF:FE4E:0/128 [0/0]
via ::, Loopback1
O 2001:0:0:21::/64 [110/2]
via FE80:1::2, FastEthernet0/0
O 2001:0:0:22::/64 [110/3]
via FE80:1::2, FastEthernet0/0
via FE80:2::2, FastEthernet0/1
O 2001:0:0:23::/64 [110/2]
via FE80:2::2, FastEthernet0/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0Some additional commands you can use for veiwing you setup, and troubleshooting.
You can view the OSPF Neighbors using the below command:
R0#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/BDR 00:00:37 4 FastEthernet0/1 1.1.1.1 1 FULL/BDR 00:00:37 4 FastEthernet0/0
The same command with the detail flag, will show you some additional information.
R0#show ipv6 ospf neighbor detail
Neighbor 3.3.3.3
In the area 0 via interface FastEthernet0/1
Neighbor: interface-id 4, link-local address FE80:2::2
Neighbor priority is 1, State is FULL, 6 state changes
DR is 10.10.10.10 BDR is 3.3.3.3
Options is 0x84B41E21
Dead timer due in 00:00:34
Neighbor is up for 00:04:35
Index 1/1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 1.1.1.1
In the area 0 via interface FastEthernet0/0
Neighbor: interface-id 4, link-local address FE80:1::2
Neighbor priority is 1, State is FULL, 6 state changes
DR is 10.10.10.10 BDR is 1.1.1.1
Options is 0x856AB41D
Dead timer due in 00:00:33
Neighbor is up for 00:04:36
Index 1/2/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
View the OSPF database:
R0#show ipv6 ospf database
OSPFv3 Router with ID (10.10.10.10) (Process ID 1)
Router Link States (Area 0)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 351 0x80000004 0 2 None
2.2.2.2 353 0x80000003 0 2 None
3.3.3.3 351 0x80000004 0 2 None
10.10.10.10 351 0x80000004 0 2 None
Net Link States (Area 0)
ADV Router Age Seq# Link ID Rtr count
2.2.2.2 363 0x80000001 4 2
3.3.3.3 363 0x80000001 5 2
10.10.10.10 356 0x80000001 4 2
10.10.10.10 355 0x80000001 5 2
Link (Type-8) Link States (Area 0)
ADV Router Age Seq# Link ID Interface
3.3.3.3 401 0x80000001 4 Fa0/1
10.10.10.10 401 0x80000001 5 Fa0/1
1.1.1.1 402 0x80000001 4 Fa0/0
10.10.10.10 402 0x80000001 4 Fa0/0
10.10.10.10 402 0x80000001 8 Lo1
Intra Area Prefix Link States (Area 0)
ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
1.1.1.1 403 0x80000001 0 0x2001 0
2.2.2.2 403 0x80000001 0 0x2001 0
3.3.3.3 404 0x80000001 0 0x2001 0
10.10.10.10 402 0x80000001 0 0x2001 0Show ipv6 ospf area will show you some additional information.
R0#show ipv6 ospf 1 Routing Process "ospfv3 1" with ID 10.10.10.10 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs LSA group pacing timer 240 secs Interface flood pacing timer 33 msecs Retransmission pacing timer 66 msecs Number of external LSA 0. Checksum Sum 0x000000 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Area BACKBONE(0) Number of interfaces in this area is 3 SPF algorithm executed 3 times Number of LSA 17. Checksum Sum 0x074E36 Number of DCbitless LSA 0 Number of indication LSA 0 Number of DoNotAge LSA 0 Flood list length 0




