
416
Example:
Switch#clear ip ospf process
13.6.3.13 distance
Command: distance {<value>|ROUTEPARAMETER}
no distance ospf
Function:
Configure OSPF manage distance base on route type. The “
no distance
ospf
” command restores the default value.
Parameter: <value>,
OSPF routing manage distance, ranging between 1~235
ROUTEPARAMETER= ospf {ROUTE1|ROUTE2|ROUTE3}
ROUTE1= external <external-distance>,
Configure the distance learnt from other
routing area.
<external-distance>
distance value, ranging between 1~255
ROUTE2= inter-area <inter-distance>,
configure the distance value from one
area to another area.
<inter-distance>
manage distance value, ranging between 1~255
ROUTE3= intra-area <intra-distance>
Configure all distance values in one area.
<intra-distance>
Manage distance value, ranging between 1~255
Default:
Default distance value is 110
Command Mode:
OSPF protocol mode
Usage Guide:
Manage distance shows the reliability of the routing message source. The
distance value may range between 1~255. the larger the manage distance value is, the
lower is its reliability.
Example:
Switch#config terminal
Switch(config)#router ospf 100
Switch(config-router)#distance ospf inter-area 20 intra-area 10 external 40
13.6.3.14 distribute-list
Command: distribute-list <access-list-name> out {kernel |connected| static| rip|
isis| bgp}
[no] distribute-list out {kernel |connected| static| rip| isis| bgp}
Function:
Filter network in the routing update. The “
[no] distribute-list out {kernel
|connected| static| rip| isis| bgp}
” command disables this function.
Parameter: < access-list-name>
is the access-list name to be applied
out:
Filter the sent route update
kernel
Kernel route
connected
Direct route
static
Static route