Assigning OSPFv3 areas to interfaces
Defined OSPFv3 areas can be assigned to device interfaces.
Ensure that OSPFv3 areas are assigned.
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.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
interfacecommand and specify an interface. - Enter the
ipv6 addresscommand to add an IPv6 address to the interface. - Enter the
ipv6 ospf areacommand.Area 0 is assigned to the specified interface with the IPv6 address of 2001:db8:93e8:cc00::1. - Enter the
exitcommand to return to global configuration mode. - Enter the
interfacecommand and specify an interface. - Enter the
ipv6 addresscommand to add an IPv6 address to the interface. - Enter the
ipv6 ospf areacommand.Area 1 is assigned to the specified interface with the IPv6 address of 2001:db8:93e8:cc00::1.
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 ve 1 device(config-vif-1)# ipv6 address 2001:db8:93e8:cc00::1 device(config-vif-1)# ipv6 ospf area 0 device(config-vif-1)# exit device(config)# interface ve 2 device(config-vif-2)# ipv6 address 2001:db8:93e8:cc00::2 device(config-vif-2)# ipv6 ospf area 1