Configuring OSPF on an Interface
Use this command to enable the OSPF protocol on a specified interface. The ROUTED daemon listens and sends OSPF messages on this interface only.
|
Note - Before you configure an OSPF interface, you must first run:
> set router-id <ip_address> .
For example, to configure OSPF on interface eth1-01 (IP 40.40.40.1 ), run: > set router-id 40.40.40.1
|
To learn how to configure route injection to the OSPF table, search for Configuring RIM on Gaia in the R76 VPN Administration Guide.
Syntax
set ospf interface <if_name> <area> [on|off]
Parameter
|
Description
|
<if_name>
|
Name of the interface to be used for OSPF.
|
<area>
|
Specify one of these area values"
- An IPv4 address
- An integer value between 1 and 4294967295
backbone
By default, the backbone area is enabled.
|
[on|off]
|
Enable or disable OSPF for the specified area/
|
Example
> set ospf interface eth1-01 area backbone on
Notes
- To verify that the interface has OSPF enabled, run:
> show ospf interfaces
- To show the OSPF state in relation to its neighbors, run:
> show ospf neighbors
- To show OSPF statistics, run:
> show ospf summary
|
|