01-13-2024 12:18 AM
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 🙂
01-13-2024 12:27 AM
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)...
01-13-2024 12:43 AM
01-13-2024 01:09 AM
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
01-13-2024 12:58 AM - edited 01-13-2024 01:27 AM
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
01-13-2024 01:44 AM
--> That switch is layer 2 switch and IP on switch is only for management
This means you definitely need the 'ip default-gateway'...
01-13-2024 01:54 AM - edited 01-13-2024 01:55 AM
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.
01-13-2024 04:36 AM
01-13-2024 04:37 AM
Correction !
The gateway for PC is layer 3 which is configured on router
01-13-2024 04:54 AM
Hello,
post the running configs (sh run) of both switch and the router...
01-20-2024 11:39 PM
01-21-2024 12:38 AM - edited 01-21-2024 12:38 AM
Thanks @surazb
Does Router ping the PC ?
Please shutdown PC firewall.
01-21-2024 03:54 AM
Nope,
Cano not ping PC for router and vice-versa
Only switch can ping PC and Router as shown in attached config of switch
01-21-2024 04:05 AM
Ip access-list 100
Permit ip host <pc> host <router>
Then
Debug ip packets access list 100
Ping and Share output
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide