cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
911
Views
0
Helpful
15
Replies

Connectivity Issue

spaceage21
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

Enable IP routing in the device. I see this command in the output:

 --More--         no ip routing
no ip cef

CF

View solution in original post

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

View solution in original post

15 Replies 15

Philip D'Ath
VIP Alumni
VIP Alumni

Could you post your config?

It could be so many things.

Thanks for the help Philip, its appreciated. Attached is the router configuration.

Enable IP routing in the device. I see this command in the output:

 --More--         no ip routing
no ip cef

CF

+1 to Cisco Freak.  You need to enable routing.

ip routing

Thanks guys. When I enable ip routing I am no longer able to ping the internet. What happened?

Did you try rebooting the router after saving the config?

Which model router are you using and what software version?

Yes, rebooted after enabling ip routing and saving the config. The model router is 2911 v15.0

can you share 'sh ip route' output?

Gateway of last resort is 0.0.0.0 to network 0.0.0.0
S*    0.0.0.0/0 is directly connected, GigabitEthernet0/0
      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.1.1.0/24 is directly connected, GigabitEthernet0/1
L        10.1.1.1/32 is directly connected, GigabitEthernet0/1
      47.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        47.32.79.0/24 is directly connected, GigabitEthernet0/0
L        47.32.79.122/32 is directly connected, GigabitEthernet0/0
      68.0.0.0/32 is subnetted, 1 subnets
S        68.114.38.232 [254/0] via 47.32.79.1, GigabitEthernet0/0

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

when I try to run the last command it rejects and says invalid next ho address (its this router)

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?

Thanks again guys, everything is working now and I'm excited. Salute

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
Review Cisco Networking for a $25 gift card