cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3981
Views
1
Helpful
13
Replies

PC Ping issue

surazb
Level 2
Level 2

I am preparing lab for home and i have exact below setup and config. 
also issue is mentioned in attached snap
Can any one help me this behaviour please 

Thanks in advanced 🙂

13 Replies 13

Georg Pauwen
VIP Alumni
VIP Alumni

Hello,

try to set the default gateway of the PC to 172.16.10.2 (the first layer 3 interface, which is the Vlan 10 interface of the switch)...

That switch is layer 2 switch and IP on switch is only for management
But I did this solution as well still not able to ping Router from PC

Hello,

if the switch is layer 2 only, set the default gateway on the PC to the IP address of the router (172.16.10.1), and on the switch, configure:

ip default-gateway 172.16.10.1

M02@rt37
VIP
VIP

Hello @surazb 

Let PC Gateway as 172.16.10.1 ; IP hosted on L3 unit, so it is perfect.

You don't need ip default-gateway on Switch to have this ping successful.

Please do #show interface trunk on the Switch. 

Ensure Giga 1/0/48 is dot1q interface and vlan 10 is allowed and forwarded on that port !

int Gi 1/0/48

switchport encapsulation dot1q

switchport mode trunk 

switchport trunk allowed vlan 10

no shut

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37 

--> That switch is layer 2 switch and IP on switch is only for management

This means you definitely need the 'ip default-gateway'...

Hello @Georg Pauwen 

Work on this issue first ; PC does not ping its gateway hosted on Router. After that, we gonna see how to manage that switch.

The command you mention is not needed to perform that specific ping. 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

surazb
Level 2
Level 2

Switch port connecting to router is already trunk port with all VLANs forwarding, Also the gateway for PC is layer 2 which is configured on router

Correction !

 The gateway for PC is layer 3 which is configured on router

Hello,

post the running configs (sh run) of both switch and the router...

surazb
Level 2
Level 2

Hi Guys, 
Thanks a lot for you help and posts, Here is full config of Router and Switch in attachment 

Thanks @surazb 

Does Router ping the PC ?

Please shutdown PC firewall. 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Nope, 
Cano not ping PC for router and vice-versa 
Only switch can ping PC and Router as shown in attached config of switch 

Ip access-list 100

Permit ip host <pc> host <router>

Then 

Debug ip packets access list 100

Ping and Share output 

MHM