The range of AD is 0255

The Range Of Ad Is 0255

Default Routing Command

When a router does not find a route for a specific destination in its routing table, it tries to send it to the default route. The default route configuration format:

Router (config) # ip default-network network-address

Note: routers discard packets for unknown network unless you have configured a default network.

To delete a static route, use the no command at the beginning of the route command.

Router (config) #no ip route 172.11.11.0 255.255.255.0 192.168.1.1

Administrative Distance Modification

Router (config) #ip route network-address mask next-hop-IP 5

Here, 5 is the AD. The range of AD is 0-255. A route with lower AD is always preferred over a route with higher AD.

For example, if you configure two routes with different AD for the same destination network 10.10.0.0, the route with lower AD will be used to send traffic.

router (config) #ip route 10.10.0.0 255.255.0.0 30.1.1.1 5

router (config) #ip route 10.10.0.0 255.255.0.0 20.1.1.1 3 (this route will be preferred because AD is 3).

Route

Default AD

Connected interface

0

Static route

1

EIGRP

90

IGRP

100

RIP

120

OSPF

110

External EIGRP

170

Unknown

255

Note: connected interfaces are always preferred over all other routes. Normally, unreachable network is deleted from the routeing table. If you want to keep it permanent, you can use permanent keyword at the end of the command such as