Route Selection
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
25.5
The following table lists the default administrative distances of protocols.
You can change the administrative distances for static routes and protocol derived routes. Use
the following commands:
■
for static routes, specify the distance when adding the route. Use the command:
■
for eBGP and iBGP routes, enter the router mode, and use the command:
to enter a separate administrative distance value for each BGP route type. To set the
administrative distance for a specific BGP route, use the command:
■
for OSPF routes, enter the router mode, and use the command:
to enter a separate administrative distance value for each OSPF route type. To set the
same value for all OSPF route types, use the command:
■
for RIP routes, enter the router mode, and use the command:
This sets the administrative distance for all RIP routes.
You cannot set an administrative distance for connected routes.
Protocols
Distance
Preference
Connected
Routes directly connected to an
interface.
-
1 (highest)
Static
Routes added using the
ip route
command or learnt through DHCP
options on interfaces using DHCP to
obtain an IP address.
1
2
eBGP
Routes learnt from BGP that are
external to your network.
20
3
OSPF
Routes learnt from OSPF.
110
4
RIP
Routers learnt from RIP.
120
5
iBGP
Routes learnt from BGP that are
internal to your network.
200
6 (lowest)
awplus(config)#
ip route SUBNET&MASK {GATEWAYIP|INTERFACE} [<1-255>]
awplus(config-router)#
distance bgp EBGP IBGP LOCAL
awplus(config-router)#
distance <1-255> {A.B.C.D/M} [<listname>]
awplus(config-router)#
distance {external <1-255> | inter-area <1-255> |
intra-area <1-255>}
awplus(config-router)#
distance <1-255>
awplus(config-router)#
distance <1-255> {A.B.C.D/M [ACCESSLIST]}