cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
619
Views
5
Helpful
3
Replies

Pinging problem

stoneylad34205
Level 1
Level 1

Hi guys 

 

I have a PC connected to a switch which connects to a router. I can ping the router from the PC and vice versa. I cannot ping to or from the switch. I have checked mac addresses and they are correct. What on earth is going on?

 

Thanks

 

Chase

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

You need to provide more information about how this switch connected. what is the IP address of PC? Router? Switch?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

make sure your IP addressing looks something like below (addresses are arbitrary):

 

PC

IP:192.168.1.3/24

Default Gateway:192.168.1.1

 

Switch

interface Vlan 1

ip address 192.168.1.2 255.255.255.0

ip default-gateway 192.168.1.1

 

Router

interface GigabitEthernet0/0

ip address 192.168.1.1 255.255.255.0

I agree that we do not know enough about this situation to be able to give a really good solution. What is described sounds like there is a vlan configured on the switch with at least 2 access ports in that vlan, and that both the router and the PC are connected to access ports in that vlan. Is that correct?

 

Things we do not know and need to know include:

- does the switch have a vlan interface for the vlan that connects the router and the PC?

- if there is a vlan interface then does that interface have an IP address that is in the same subnet as the router and the PC?

If the answer to either of these is no then we have identified the problem. 

If the answer to both of these is yes then we need to continue to look further and posting the config of the switch would be a good next step.

HTH

Rick
Review Cisco Networking for a $25 gift card