/
protocols ospf4 area interface vif address neighbor router-id

protocols ospf4 area interface vif address neighbor router-id

To configure an OSPF neighbor, use the set protocols ospf4 area interface vif address neighbor router-id command in L2/L3 configuration mode.

Command Syntax

set protocols ospf4 area area-id interface interface-name vif vif-name address local-ip-address neighbor remote-ip-address router-id remote-router-id

Parameters

area-idOSPF area identifier.
interface-nameInterface name.
vif-nameVirtual interface name.
local-ip-addressVirtual interface IP address on this device used for OSPF.
remote-ip-addressIP address of the OSPF neighbor.
remote-router-idOSPF router identifier of the OSPF neighbor.

Example

This example configures an OSPF neighbor with IP address 10.2.2.2 and OSPF router ID 2.2.2.2.

admin@Switch# set protocols ospf4 area 0.0.0.0 interface vlan2 vif vlan2 address 10.2.2.1 neighbor 10.2.2.2 router-id 2.2.2.2

Copyright © 2025 Pica8 Inc. All Rights Reserved.