11-08-2006 08:06 PM - edited 03-05-2019 12:42 PM
gv me command to add static routes to a cisco switch 3560
11-08-2006 08:28 PM
Hi
AFAIK once you have enabled ip routing command under the global config mode you will be able to define normal static routes.
ip route x.x.x.x y.y.y.y z.z.z.z
x.x.x.x y.y.y.y - subnet you wish to route
z.z.z.z - Next hop ip (may be your router interface ip)
As per the supporting document if you need to have any dynamic routing protocols such as OSPF ,EIGRP and BGP to be enabled on the switch then you need to have ios with ip services feature in it.
do refer this link for more info..
regs
11-08-2006 08:34 PM
ay we want to forward traffic for 172.16.0.0/16 throug gateway 10.32.0.245.
The configuration would be:
conf t
ip route 172.16.0.0 255.255.0.0 10.32.0.254
end
But before that enable ip routing in global config mode
Verify your route
sh ip route 172.16.0.0
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide