Command Reference OSPFv2 Commands
Displays the IP route table.
Redistributes routes of other routing processes.
Use this command to set the default metric of OSPF redistribution route. Use the no form of this
command to restore the default setting.
Default metric of the OSPF redistribution route in the range from1 to
16777214
The default metric is not configured by default.
Routing process configuration mode
The default-metric command must work with the redistribute command in routing process
configuration mode to modify the initial metric of all redistributed routes.
The configuration result of the default-metric command does not take effect for the external routes
injected into the OSPF routing domain with the default-information originate command.
The following example configures the default metric of the OSPF redistribution route as 50.
Switch(config)# router rip
Ruijie(config-router)# network192.168.12.0
Switch(config-router)# version 2
Ruijie(config-router)# exit
Ruijie(config)# routerospf1
Ruijie(config-router)# network172.16.10.0 0.0.0.255area0
Switch(config-router)# default-metric 50
Ruijie(config-router)# redistribute rip subnets
Redistributes the routes of other routing
processes.
Displays the OSPF global configuration
information.