cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
565
Views
0
Helpful
4
Replies

Router on a stick

vandread44
Level 1
Level 1

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. 

4 Replies 4

Martin L
VIP
VIP

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 **

Hello @vandread44 ,

can you share the configs from the router and the switch?

Regards, LG
*** Please Rate All Helpful Responses ***

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.

 

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

Regards, LG
*** Please Rate All Helpful Responses ***