cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
731
Views
20
Helpful
5
Replies

Getting internet from switch but cant ping in network

Hello how's everyone doing. So i am very new to this just started studying about 2 weeks ago. I setup a 2611 router with a 3500xl switch using my comcast router. I'm not sure why but when i plug into the switch my pc gets an ip and connects to the internet but if i try to ping anything from the switch it doesn't work. The switch doesn't even have an ip. Here is the running config for the router. Again super new first time trying to set this up by myself no videos.

Thanks in advance for any and all help.

 

ip subnet-zero
!
!
!
ip dhcp pool labuser
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
dns-server 8.8.8.8
!
mpls ldp logging neighbor-changes
!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Ethernet0/0
ip address dhcp
ip nat outside
half-duplex
!
interface Ethernet0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
half-duplex
!
ip nat inside source list 1 interface Ethernet0/0 overload
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.0.1
!
!
!
access-list 1 permit any
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

1 Accepted Solution

Accepted Solutions

Hello,

 

your equipment is extremely old, but I guess that is obvious.

 

Your switch needs an IP address and a default gateway. Configure the below on the switch:

 

interface Vlan 1

ip address 10.1.1.2 255.255.255.0

!

ip default-gateway 10.1.1.1

 

On the router, make the changes/additions marked in bold:

 

ip subnet-zero
--> ip dhcp excluded-address 10.1.1.1
!
ip dhcp pool labuser
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
dns-server 8.8.8.8
!
mpls ldp logging neighbor-changes
!
no voice hpi capture buffer
no voice hpi capture destination
!
mta receive maximum-recipients 0
!
interface Ethernet0/0
ip address dhcp
ip nat outside
half-duplex
!
interface Ethernet0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
half-duplex
!
ip nat inside source list 1 interface Ethernet0/0 overload
no ip http server
ip classless
!
ip route 0.0.0.0 0.0.0.0 10.0.0.1
!
--> access-list 1 permit 10.1.1.0 0.0.0.255
!
call rsvp-sync
!
mgcp profile default
!
dial-peer cor custom
!
line con 0
line aux 0
line vty 0 4
!
end

 

View solution in original post

5 Replies 5

Hello,

 

your equipment is extremely old, but I guess that is obvious.

 

Your switch needs an IP address and a default gateway. Configure the below on the switch:

 

interface Vlan 1

ip address 10.1.1.2 255.255.255.0

!

ip default-gateway 10.1.1.1

 

On the router, make the changes/additions marked in bold:

 

ip subnet-zero
--> ip dhcp excluded-address 10.1.1.1
!
ip dhcp pool labuser
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
dns-server 8.8.8.8
!
mpls ldp logging neighbor-changes
!
no voice hpi capture buffer
no voice hpi capture destination
!
mta receive maximum-recipients 0
!
interface Ethernet0/0
ip address dhcp
ip nat outside
half-duplex
!
interface Ethernet0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
half-duplex
!
ip nat inside source list 1 interface Ethernet0/0 overload
no ip http server
ip classless
!
ip route 0.0.0.0 0.0.0.0 10.0.0.1
!
--> access-list 1 permit 10.1.1.0 0.0.0.255
!
call rsvp-sync
!
mgcp profile default
!
dial-peer cor custom
!
line con 0
line aux 0
line vty 0 4
!
end

 

lol yes pretty darn old. someone i know give me a whole bunch of stuff servers routers switches. I think the newest thing in there was a cisco asa 5505 which is still fairly old. I'll try these and report back. Thanks 

Worked like a charm thanks again

Hello

Change the routers interface to be duplex full and default route

no ip route 0.0.0.0 0.0.0.0 10.0.0.1

ip route 0.0.0.0 0.0.0.0 eth0/0 dhcp

 

Check your client pc to make sure it’s obtaining the correct ip addressing- ipconfig/all

 

Please note - The switch doesn’t require any ip addressing or  default gateway for your host connected to it to work - adding that to the switch would just be for the remote management of the switch- the addressing has no bearing on routing from client to router 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

ahhh i see so that's why it can connect to the internet and lease an ip. Thanks a ton. I just got home so ill give both a shot

Review Cisco Networking for a $25 gift card