02-08-2016 10:02 AM - edited 03-05-2019 03:17 AM
I have a cable modem connected in router g0/0 receiving dhcp and g0/1 internal lan connect to switch. I am able to ping the outside world from router but not switch and can't figure out what's wrong. Please Help
Solved! Go to Solution.
02-09-2016 10:01 AM
Enable IP routing in the device. I see this command in the output:
--More-- no ip routing no ip cef
CF
02-09-2016 01:03 PM
The more correct line is (which will make it use the DHCP next hop automatically):
ip route 0.0.0.0 0.0.0.0 DHCP
02-08-2016 07:08 PM
Could you post your config?
It could be so many things.
02-09-2016 09:03 AM
02-09-2016 10:01 AM
Enable IP routing in the device. I see this command in the output:
--More-- no ip routing no ip cef
CF
02-09-2016 10:14 AM
+1 to Cisco Freak. You need to enable routing.
ip routing
02-09-2016 10:44 AM
Thanks guys. When I enable ip routing I am no longer able to ping the internet. What happened?
02-09-2016 10:53 AM
Did you try rebooting the router after saving the config?
Which model router are you using and what software version?
02-09-2016 11:10 AM
Yes, rebooted after enabling ip routing and saving the config. The model router is 2911 v15.0
02-09-2016 12:01 PM
can you share 'sh ip route' output?
02-09-2016 12:15 PM
02-09-2016 12:29 PM
Seems like the gateway config is wrong:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0.
Can you please try this:
no ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0
ip route 0.0.0.0 0.0.0.0 47.32.79.122
02-09-2016 12:37 PM
when I try to run the last command it rejects and says invalid next ho address (its this router)
02-09-2016 12:50 PM
for some reason I am able to ping from the switch and a client now. All I did was attempt to run the cmd's above which the last one failed so disabling ip route fixed the issue?
02-09-2016 05:09 PM
Thanks again guys, everything is working now and I'm excited. Salute
02-09-2016 12:55 PM
My bad.. :)
Router is showing the proper error message..
What I meant is to use the IP address of the ISP side as your gateway.. :)
ip route 0.0.0.0 0.0.0.0 47.32.79.xxx
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