Configure an OSPF area.

Allows to create an OSPF area, which will contain a set of the router's interfaces. The interfaces of differents routers belonging to the same area will interchange routing information.

 ospf:configureArea router:router-name area-id 

Arguments

area-id: Name of the area. Usually an ipv4 address.

Options

-a : Area type. Acceptes values are "PLAIN", "STUB" and "NSSA".

-d : Deletes the given area

Example

ospf:configureArea router:junos20 0.0.0.0


Add interface to an OSPF Area.

Once an OSPF area has been created, you can add interfaces to the list of interfaces belonging to an specific group.

ospf:configureInterfaceInArea router:router-name area-id interfaces

Arguments

area-id: Name of the area to add interfaces to.

interfaces: List of interfaces to add.

Options

-d : Deletes the list of interfaces from the OSPF area, instead of adding them.

Example

ospf:configureInterfaceInArea router:junos20 0.0.0 fe-0/1/0.2 ge-0/0/1.1 

 

Activate OSPF

In order to start sending OSPF LSAs packets and update the routing tables according to it, OSPF protocol has to be activated in the router.

ospf:activate router:router-name

 

Deactivate OSPF

Deactivates OSPF protocol in the router.

ospf:deactivate router:router-name