02-28-2024 03:39 PM
I am working with Router on a Stick. I have set this up a few times in Packet Tracer. I can never get the router and switch to ping. Everything else works great. I have setup ip for vlan 1, set default gateway for vlan 1 and in global, made sure vlan 1 is allowed vlan on trunking port. I have played around with this and it seems it only is an issue with encapsulation on a port. If I assign an ip to the router port everything works great.
Is there something I'm missing when setting up router on stick to make this work?
The whole reason behind this was I noticed I couldn't ping the switch from a PC either so I couldn't ssh into it.
02-28-2024 03:53 PM
u can attach your PT file here in zip format! we had several samples shared here.... u could find one and compare /analyze it
Regards, ML
**Please Rate All Helpful Responses **
02-29-2024 07:37 AM
Hello @vandread44 ,
can you share the configs from the router and the switch?
02-29-2024 01:17 PM
I don't have a standing config going, but to be simple
Let's say we have 1 router. Port g0/0/1.10 ip address 192.168.10.1 255.255.255.0. g0/0/1.20 ip address 192.168.20.1
Then one switch: vlan 1 ip address 192.168.10.2 255.255.255.0 ip default-gateway 192.168.10.1 from Global : 1 set VLAN : VLAN 4 for HR. 1 pc connected to a port within the VLAN. Interface g0/1 to router. Trunking, allowed vlan 1, 20
The PC will ping the router no problem. The PC will not ping the switch. Switch and router will not ping.
02-29-2024 02:13 PM
Not 100% sure I understand your explanation, but I assume your PC is connected in VLAN 4.
You should have on the router
interface g0/0/1.4
encapsulation dot1q 4
ip address 192.168.4.1 255.255.255.0
On the switch trunk you should be allowing vlan 4, 10, 20
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