Routing table configuration

Last Updated : Aug 02, 2016 |

When you configure the routing table, you can:

  • View information about the routing table

  • Add entries to the routing table

  • Delete entries from the routing table

Note:

To change an entry in the routing table, delete the entry and then add it as a new entry.

The routes in the routing table are static routes. They are never timed-out, and can only be removed manually. If you delete the interface, all static routes on the interface are also deleted.

A static route becomes inactive whenever the underlying Layer 2 interface is down, except for permanent static routes. You can disable the interface manually using the ip admin-state down command. For more information, see Permanent static route. When the underlying Layer 2 interface becomes active, the static route enters the routing table again.

You can monitor the status of non-permanent static routes by applying object tracking to the route. Thus, if the track state is changed to down then the static route state is changed to inactive, and if the track state is changed to up then the static route state is changed to active. For more information on object tracking, see Object tracking.

Static routes can be advertised by routing protocols, such as RIP and OSPF. For more information, see Route redistribution. Static routes also support load-balancing similar to OSPF.