router : ospf : config neighbor
 
config neighbor
Use this subcommand to manually configure an OSPF neighbor on non-broadcast networks. OSPF packets are unicast to the specified neighbor address. You can configure multiple neighbors.
The ip field is required. All other fields are optional.
Variable
Description
Default
edit <neighbor_id>
Enter an ID number for the OSPF neighbor. The number must be an integer.
No default.
cost <cost_integer>
Enter the cost to use for this neighbor. The valid range for cost_integer is 1 to 65535.
10
ip <address_ipv4>
Enter the IP address of the neighbor.
0.0.0.0
poll-interval <seconds_integer>
Enter the time, in seconds, between hello packets sent to the neighbor in the down state. The value of the poll interval must be larger than the value of the hello interval. The valid range for seconds_integer is 1 to 65535.
10
priority <priority_integer>
Enter a priority number for the neighbor. The valid range for priority_integer is 0 to 255.
1
Example
This example shows how to manually add a neighbor.
config router ospf
config neighbor
edit 1
set ip 192.168.21.63
end
end