Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To configure OSPF on a PicOS device, complete the tasks described in the following sections.

Configuring OSPF Router ID

...

set protocols ospf router-id <router-id>

The following example configures 1.1.1.1 as the OSPF router ID:

Code Block
admin@XorPlus# set protocols ospf router-id 1.1.1.1
admin@XorPlus# commit
Commit OK.
Save done.

Do not change the router ID after completing the configuration.

Configuring OSPF Areas

Divide an OSPF domain into areas, which contains the flow of most routing protocol traffic within a single area and reduces the impact of protocol on CPU and memory.

Use the following command to configure OSPF areas:

set protocols ospf area <area-id> area-type <type>

Area ID 0.0.0.0 is reserved for the backbone and each OSPF domain must have the backbone area. All traffic between two non-backbone areas must pass through the backbone area. OSPF area types supported by PicOS are: normal, stub, and NSSA. A normal or standard area in OSPF is one that is configured neither as Stub nor NSSA.

...

set protocol ospf interface <vlan-interface> vif <vlan-interface> interface> area {<ipv4>|<0-4294967295>}

...

Code Block
admin@XorPlus# set vlans vlan-id 20 l3-interface "vlan-20"
admin@XorPlus# set vlans vlan-id 30 l3-interface "vlan-30"
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 20
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 30
admin@XorPlus# set l3-interface vlan-interface vlan20 address 10.10.70.10 prefix-length 24
admin@XorPlus# set l3-interface vlan-interface vlan30 address 10.10.71.10 prefix-length 24
admin@XorPlus# set protocols ospf interface vlan-20 vif vlan-20 area 0.0.0.0
admin@XorPlus# set protocols ospf interface vlan-30 vif vlan-30 area 0.0.0.0
admin@XorPlus# commit
Commit OK.
Save done.
admin@XorPlus#

...

Code Block
admin@XorPlus# set protocols ospf interface vlan-20 vif vlan-20 hello-interval 5
admin@XorPlus# set protocols ospf interface vlan-20 vif vlan-20 cost 8
admin@XorPlus# set protocols ospf interface vlan-20 vif vlan-20 dead-interval 120
admin@XorPlus# commit
Commit OK.
Save done.

...