To enable OSPF on an interface and assign the interface to an area, use the set protocols ospf interface area command in L2/L3 configuration mode. The interface will send and accept OSPF LSAs (link-state advertisements).
Run the command delete protocols ospf interface area to remove this configuration from the system.
Command Syntax
set protocols ospf interface <vlan-interface> area {<ipv4>|<area-id>}
delete protocols ospf interface <vlan-interface> area {<ipv4>|<area-id>}
Parameters
interface <vlan-interface> | Specifies the VLAN interface name. |
area {<ipv4>|<area-id>} | Specifies the OSPF area in IPv4 format or an integer in the range of 0 to 4294967295. |
Example
- Enable OSPF on interface vlan200 and assign it to area 1.1.1.1.
admin@XorPlus# set protocols ospf interface vlan200 area 1.1.1.1 admin@Xorplus# commit