Product Documentation

router ospf

Sep 12, 2016

The following operations can be performed on "router ospf":

set router ospf

Configure different OSPF parameters. NOTE: This command is deprecated.All routing configurations have now been moved to vtysh

Synopsys

Arguments

routerID

The router ID.

passiveInterface

The mode of the Interface. Use this option to change the mode of the interface to listen only.

staticRedistribute

The state of the router in redistributing static routes. Use this option to enable the redistribution of static routes.

staticMetricType

The metric type for static routes.

Default value: 2

Minimum value: 1

Maximum value: 2

kernelRedistribute

The state of the router in redistributing kernel routes. Use this option to enable the redistribution of kernel routes.

kernelMetricType

The metric type for kernel routes.

Default value: 2

Minimum value: 1

Maximum value: 2

conRedistribute

The state of the router in redistributing connected routes. Use this option to enable the redistribution of connected routes.

conMetricType

The metric type for connected routes.

Default value: 2

Minimum value: 1

Maximum value: 2

learnRoute

The state of the router in learning routes from OSPF. Use this option to enable route learning from OSPF.

network

The broadcast network on which OSPF is to be run.

netmask

The netmask for the broadcast network.

area

The area ID of the area in which OSPF is running.

Default value: -1

host

The stub link.

cost

The cost of the hostroute.

Example

set ospf -routerID 1.2.3.4

unset router ospf

Unset the OSPF parameters that were configured using the ###set ospf### command..Refer to the set router ospf command for meanings of the arguments.NOTE: This command is deprecated.All routing configurations have now been moved to vtysh

Synopsys

Example

unset ospf -router-id

show router ospf

Display the state of the OSPF daemon. NOTE: This command is deprecated.All routing configurations have now been moved to vtysh

Synopsys

Arguments

ospfoptions

The Router OSPF option. Use this option to display one of border-routers, database, interface, neighbor, route, and virtual-links.

Possible values: border-routers, database, interface, neighbor, route, virtual-links

Outputs

network

The network on which OSPF is running.

netmask

Netmask of the network on which OSPF is running

Example

show ospf neighbor