Continuing from the previous section, which highlighted the configuration differences between OSPFv2 and OSPFv3, this section goes through the steps required to enable and verify OSPFv3 functionality and routing in Cisco IOS software. The following sequence of steps should be taken to enable OSPFv3 routing in Cisco IOS software:
- Globally enable IPv6 routing using the ipv6 unicast-routing global configuration command. By default, IPv6 routing is disabled in Cisco IOS software.
- Configure one or more OSPFv3 processes using the ipv6 router ospf [process ID] global configuration command.
- If there are no operational interfaces with an IPv4 address configured on the router, then configure the OSPFv3 RID manually using the router-id [IPv4 Address] router configuration command.
- Enable IPv6 on the desired interfaces using the ipv6 address and ipv6 enable interface configuration commands.
- Enable one or more OSPFv3 processes under the interface using the ipv6 ospf [process ID] area [area ID] interface configuration command.
The first basic multi-area OSPFv3 configuration example is based on the topology that is illustrated in Figure 13.1 below:
Figure 13.1 – Configuring Basic Multi-Area OSPFv3 in Cisco IOS Software
Following the sequence of configuration steps described in the previous section, OSPFv3 will be configured on router R1 as follows:
| R1(config)#ipv6 unicast-routing |
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit
R1(config)#interface FastEthernet0/0
R1(config-if)#ipv6 address 3fff:1234:abcd:1::1/64
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 ospf 1 Area 0
R1(config-if)#exit
Following the same sequence of steps, OSPFv3 routing is configured on router R3 as follows:
| R3(config)#ipv6 unicast-routing |
R3(config)#ipv6 router ospf 3
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#exit
R3(config)#interface FastEthernet0/0
R3(config-if)#ipv6 address 3fff:1234:abcd:1::3/64
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 Area 0
R3(config-if)#exit
R3(config)#interface Loopback0
R3(config-if)#ipv6 address 3fff:1234:abcd:2::3/128
R3(config-if)#ipv6 address 3fff:1234:abcd:3::3/128
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 Area 1
R3(config-if)#exit
Following the configuration of OSPFv3 on both routers, you can use the show ipv6 ospf neighbors command to verify the state of the OSPFv3 adjacency, as illustrated below on R1:
|
R1#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/BDR 00:00:36 4 FastEthernet0/0 |
You can also view detailed neighbour information by appending the [detail] keyword to the end of this command:
| R1#show ipv6 ospf neighbor detail |
Neighbor 3.3.3.3
In the area 0 via interface FastEthernet0/0
Neighbor: interface-id 4, link-local address FE80::213:19FF:FE86:A20
Neighbor priority is 1, State is FULL, 6 state changes
DR is 1.1.1.1 BDR is 3.3.3.3
Options is 0x000013 in Hello (V6-Bit E-Bit R-bit )
Options is 0x000013 in DBD (V6-Bit E-Bit R-bit )
Dead timer due in 00:00:39
Neighbor is up for 00:06:40
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
In the output above, notice that the actual neighbour interface address is the Link-Local address, not the configured global IPv6 Unicast address.
