Command Reference OSPFv2 Commands
2.16 distance ospf
Use this command to set the Administration Distance (AD) of different types of OSPF routes. Use the
no form of this command to restore the default setting.
distance { distance | ospf { [ intra-area distance ] [ inter-area distance ] [ external distance ] } }
Sets the route AD in the range from1 to 255.
Sets the AD of the intra-area route in the range from1 to 255.
Sets the AD of the inter-area route in the range from1 to 255.
Sets the AD of the external route in the range from1 to 255.
The default value is 110.
The default intra-area distance is 110.
The default inter-area distance is 110.
The default external distance is 110.
OSPF Routing process configuration mode
This command is used to specify different ADs for different types of OSPF routes.
The following example sets the OSPF external route AD to 160.
Ruijie(config)# routerospf1
Ruijie(config-router)# distance ospf external 160
Use this command to configure LSA filtering. Use the no form of this command to restore the default
setting.
distribute-list { [ access-list-number | name ] | prefix prefix-list-name [ gateway prefix-list-name ] |
route-map route-map-name } in [ interface-type interface-number ]
no distribute-list { [ access-list-number | name ] | prefix prefix-list-name [ gateway prefix-list-name ] |
route-map route-map-name } in [ interface-type interface-number ]