Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

Run the command set protocols ospf network area to configure OSPF instance for the IP subnet prefix with an area address per network. The optional parameter vrf can be used to specify OSFP instance for a particular VRF. If VRF is not defined then OSPF instance takes effect for the default VRF.

Run the command delete protocols ospf network area to delete this configuration.


Command Syntax

set protocols ospf [vrf <vrf-name>] network <ipv4/prefixlen> area {<ipv4|<area-id>}

delete protocols ospf [vrf <vrf-name>] network <ipv4/prefixlen> area {<ipv4>|<area-id>}


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

network <ipv4/prefixlen>Specifies the network prefix and prefix length in IPv4 format.
area {<ipv4>|<area-id>}Specify OSPF area, the value could be in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.

Example

  •  Enable OSPF for network 10.0.0.0/16 in VRF BLUE and specify area 1.1.1.1.
admin@XorPlus# set protocols ospf vrf BLUE network 10.0.0.0/16 area 1.1.1.1
admin@Xorplus# commit
  • No labels