Assigning OSPFv3 areas to interfaces

Defined OSPFv3 areas can be assigned to device interfaces.

Before you begin

Ensure that OSPFv3 areas are assigned.

About this task

Note

Note

All device interfaces must be assigned to one of the defined areas on an OSPFv3 device. When an interface is assigned to an area, all corresponding subnets on that interface are automatically included in the assignment.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface command and specify an interface.
    device(config)# interface ethernet 1/1
  3. Enter the ipv6 address command to add an IPv6 address to the interface.
    device(conf-if-eth-1/1)# ipv6 address 2001:1:0::1:1/64
  4. Enter the ipv6 ospf area command.
    device(conf-if-eth-1/1)# ipv6 ospf area 0
    Area 0 is assigned to the specified interface with the IPv6 address of 2001:1:0:1::1/64.
  5. Enter the exit command to return to global configuration mode.
    device(conf-if-eth-1/1)# exit
  6. Enter the interface command and specify an interface.
    device(config)# interface ethernet 2/1
  7. Enter the ipv6 address command to add an IPv6 address to the interface.
    device(conf-if-eth-2/1)# ipv6 address 2001:1:0::2:1/64
  8. Enter the ipv6 ospf area command.
    device(conf-if-eth-2/1)# ipv6 ospf area 1
    Area 1 is assigned to the specified interface with the IPv6 address of 2001:1:0:2::1/64.

Example

The following example configures and enables OSPFv3 on two specified interfaces, and assigns an interface to two router areas.

device# configure terminal
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# ipv6 address 2001:1:0::1:1/64
device(conf-if-eth-1/1)# ipv6 ospf area 0
device(conf-if-eth-1/1)# exit
device(config)# interface ethernet 2/1
device(conf-if-eth-2/1)# ipv6 address 2001:1:0::2:1/64
device(conf-if-eth-2/1)# ipv6 ospf area 1