AnimatorThree
asked on
Cisco router ip route command syntax
I want to add a subnet mask to my ip classless route. What is the syntax? I currently have
ip route 0.0.0.0 0.0.0.0 206.111.111.111 permanent
I want to add a subnet mask of 255.255.255.0
ip route 0.0.0.0 0.0.0.0 206.111.111.111 permanent
I want to add a subnet mask of 255.255.255.0
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dumb question. Thanks for the help tho!
The mask portion of the destination route is the 2nd set of octets. For example if the route was 10.1.1.0 with a next hop of 206.111.111.111 then the syntax would be
ip route 10.1.1.0 255.255.255.0 206.111.111.111
Incidentally, the "permanent" keyword does nothing for you in this case. Static routes are always permanent in that the route is always in the configuration. It's not like on a PC. On the router, it means that it will still try to route traffic to the next hop even if the interface that connects to it is down- probably not what you want.