cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4383
Views
0
Helpful
8
Replies

Can ping outside network from switch but not from pc connected to It.

Reprovoid
Level 1
Level 1

I've connected a dslmodem/router to a fast ethernet port(fa0/1) on a 2620 router.There is a 2950 switch connected to the other port (fa0/0).I can ping the Internet via the router but and the switch but not from a host connected to the switch.I can't reach the dslmodem from the host pc.I've configured nat(overload) on the router but I'm sure I've done something wrong.

I've attached the running config.Thanks

1 Accepted Solution

Accepted Solutions

Config wise I can only suggest two changes:

- Change the ACL "access-list 7 permit 192.168.9.0 0.0.0.50" to

access-list 7 permit 192.168.9.0 0.0.0.255

- Change the following statement "ip nat inside source list 7 pool ovrld overload" to

ip nat inside source list 7 interface fa0/1 overload

Hope it helps

Neeraj

View solution in original post

8 Replies 8

Leo Laohoo
Hall of Fame
Hall of Fame

Duplicate post. 

Ok , I've edited the question! Still need some help with this one.

Config wise I can only suggest two changes:

- Change the ACL "access-list 7 permit 192.168.9.0 0.0.0.50" to

access-list 7 permit 192.168.9.0 0.0.0.255

- Change the following statement "ip nat inside source list 7 pool ovrld overload" to

ip nat inside source list 7 interface fa0/1 overload

Hope it helps

Neeraj

Hi.I changed the acces-list from 0.50 to 0.255 and It works!

Why wouldn't It work with the 0.50 ? It was working for the switch with the original .50 setting.The switch ends In .2 and the pc In .7.Both were within the parameters.What am I missing ?????

I haven't covered access lists yet.I assumed 192.168.9.0   0.0.0.50  means all the addresses between 0 to 50.From what I'm reading now thats totally wrong.It's to do with inverse subnet masks.Thanks for the help.

well yes...on routers, ACL use WildCard Mask not the subnet mask and no this statement of yours is not correct "I assumed 192.168.9.0   0.0.0.50  means all the addresses between 0 to 50" its not that easy 

Wildcard mask is the opposite of Subnet mask i.e in binary format simply replace all 0's with 1 and vice versa. An easier way that I use to calculate wildcard mask is Subtrack each value in every octet from 255 and you will have the correct wildcard mask. Eg: 255.255.255.0 = 0.0.0.255 in wildcard, similarly 255.255.240.0 = 0.0.15.255 in wildcard mask

Do go through the ACL section as this is the basic rule that needs to be followed in any ACL on routers and Switches.

Best of luck

Neeraj

I'll hit the books lol.Thanks for your help!

ebarticel
Level 4
Level 4

What is the setting on the PC? Does it get IP from DHCP or static? Check default gateway on PC.

Eugen

Hi.No It's not that.It's static and the gateway Is correct.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: