Friday, December 19, 2008

Put a label on static routes

In the unfortunate case of having to use static routes it can be useful to put a label on each route describing the purpose so that if there is ever the opportunity to remove the route it is clear as to it's purpose. On Cisco routers the syntax is as follows:

router(config)# ip route x.x.x.x y.y.y.y z.z.z.z name (name)

Where X = the IP address and Y = the subnet mask and Z = next hop. The name can't have any spaces. For example:

router(config)# ip route 10.1.1.1 255.0.0.0 10.1.1.2 name production_static_route