A virtual link is configured, and a virtual link endpoint on two devices, ABR1 and ABR2, is defined.
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 0
device(config-router-ospf-vrf-default-vrf)# area 1
device(config-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.2.2.2
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 1
device(config-router-ospf-vrf-default-vrf)# area 2
device(config-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)# router ospf device1(config-router-ospf-vrf-default-vrf)# area 0 device1(config-router-ospf-vrf-default-vrf)# area 1 device1(config-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.2.2.2 ABR2: device2# configure terminal device2(config)# router ospf device2(config-router-ospf-vrf-default-vrf)# area 1 device2(config-router-ospf-vrf-default-vrf)# area 2 device2(config-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.1.1.1