A virtual link is configured, and a virtual link endpoint on two devices, ABR1 and ABR2, is defined.
device# configure terminal
device(config) ip router-id 10.1.1.1
device(config)# ipv6 router ospf
device(config-ipv6-router-ospf-vrf-default-vrf)# area 0
device(config-ipv6-router-ospf-vrf-default-vrf)# area 1
device(config-ipv6-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.2.2.2
device# configure terminal
device(config) ip router-id 10.2.2.2
device(config)# ipv6 router ospf
device(config-ipv6-router-ospf-vrf-default-vrf)# area 1
device(config-ipv6-router-ospf-vrf-default-vrf)# area 2
device(config-ipv6-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.1.1.1
The following example configures a virtual link between two devices.
ABR1: device1# configure terminal device1(config)# ip router-id 10.1.1.1 device1(config)# ipv6 router ospf device1(config-ipv6-router-ospf-vrf-default-vrf)# area 0 device1(config-ipv6-router-ospf-vrf-default-vrf)# area 1 device1(config-ipv6-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.2.2.2 ABR2: device2# configure terminal device2(config)# ip router-id 10.2.2.2 device2(config)# ipv6 router ospf device2(config-ipv6-router-ospf-vrf-default-vrf)# area 1 device2(config-ipv6-router-ospf-vrf-default-vrf)# area 2 device2(config-ipv6-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.1.1.1