05-28-2024 11:10 AM
I have cat 2960 with default router to x.x.x.10 , however one destination (y.y.y.y) is using another gateway which is x.x.x.3 , how i can force this to use the default route .10 ?
sh ip route
Default gateway is x.x.x.10
Host Gateway Last Use Total Uses Interface
y.y.y.y x.x.x.3 0:00 1100 Vlan61
Solved! Go to Solution.
05-28-2024 12:03 PM
05-28-2024 11:44 AM
change from default-gateway to ip route command.
example :
no Default gateway x.x.x.10
ip route 0.0.0.0 0.0.0.0 x.x.x.10
if you like one of the host to route to x.x.x.3
ip route y.y.y.y 255.255.255.255 x.x.x.3
05-28-2024 11:51 AM
Host GW is different than SW GW'
Host GW is control by dhcp or by manually add GW in host.
MHM
05-28-2024 11:56 AM
Issue solved after rebooting the switch , seems the route entry was stuck !!
However i have another switch which having the same issue , and i don't want to reboot , is there any command to clear stuck routes ?
05-28-2024 12:03 PM
Try
Clear arp
Add GW again to overriding the old wrong one
MHM
05-28-2024 12:37 PM
That works ,
Thank you ,
05-28-2024 12:09 PM - edited 05-28-2024 01:13 PM
i have misunderstood the requirement of OP -aha ! reboot resolves many issue - glad to know.
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