Configuring virtual links

A virtual link is configured, and a virtual link endpoint on two devices, ABR1 and ABR2, is defined.

  1. On ABR1, enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the ip router-id command to specify the router ID.
    device(config) ip router-id 10.1.1.1
  3. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  4. Enter the area command to assign an OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 0
  5. Enter the area command to assign an OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 1
  6. Enter the area virtual-link command and the ID of the OSPFv3 device at the remote end of the virtual link to configure the virtual link endpoint.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 1 virtual-link 10.2.2.2
  7. On ABR2, enter the configure terminal command to access global configuration mode.
    device# configure terminal
  8. Enter the ip router-id command to specify the router ID.
    device(config) ip router-id 10.2.2.2
  9. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  10. Enter the area command to assign an OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 1
  11. Enter the area command to assign an OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 2
  12. Enter the area virtual-link command and the ID of the OSPFv3 device at the remote end of the virtual link to configure the virtual link endpoint.
    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