/
protocols ospf4 area interface vif address

protocols ospf4 area interface vif address

To enable OSPF on an interface and assign the interface to an area, use the set protocols ospf4 area interface vif address command in L2/L3 configuration mode. The interface will send and accept OSPF LSAs (link-state advertisements).

Command Syntax

set protocols ospf4 area area-id interface interface-name vif vif-name address ip-address

Parameters

area-idOSPF area identifier. Use the dotted decimal notation. For example, use 0.0.0.0 for area 0.
interface-nameInterface name.
vif-nameVirtual interface name.
ip-addressVirtual interface IP address used for OSPF.

Example

The following example assigns interfaces vlan2 and vlan3 to OSPF area 0:

admin@Switch# set protocols ospf4 area 0.0.0.0 interface vlan2 vif vlan2 address 10.2.2.1
admin@Switch# set protocols ospf4 area 0.0.0.0 interface vlan3 vif vlan3 address 10.3.3.1

Copyright © 2025 Pica8 Inc. All Rights Reserved.