02-24-2008 08:04 AM - edited 03-05-2019 09:20 PM
Hello Guys,
I am have setup router on a stick. I am using dot1q encapsulation for both sub-interface on the router. The router I am using is a cisco 2620 which has a fastethernet interface. I setup 2 different vlans using the 192.168.2.0/24 and 192.168.3/24 network addresses. I setup one pc on each vlan and gave them a ip address from each subnet. I then assign a valid ip for to the sub-interfaces to be the default gateway for the pc's. I am able ping the gateway of the pc's vlan I am on and the other vlan however when I attempt to ping the pc from the pc in the different vlan the ping fails. I can ping both pc's from the router with no problem. The switch I am using it a 2960G cisco switch running en dot1q trunking as well. Am I missing something? I have used packet tracer to make this happen with no problems at all.
02-24-2008 02:22 PM
Did you put the default gateway in the pc nic settings . your setup should look something like this for switch and router.
int f0
speed 100
duplex full
int f0.2
ip address 192.168.2.1 255.255.255.0
encapsulation dot1q 2 native
int f0.3
ip address 192.168.3.1 255.255.255.0
encapsulation dot1q 3
-----------------------------------------
switch
int f0/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 2,3
switchport mode trunk
switchport nonegotiate
speed 100
duplex full
02-24-2008 03:17 PM
> I setup one pc on each vlan and gave them a ip address from each subnet.
> I then assign a valid ip for to the sub-interfaces to be the default gateway for the pc's.
Good, that's taken care of. The only thing left is verifying if those PCs have a Firewall enabled. If so, disable it and try pinging again.
HTH,
__
Edison.
02-24-2008 03:27 PM
"I can ping both pc's from the router with no problem. The switch I am using it a 2960G cisco switch running en dot1q trunking as well"
Seems like firewall is not an issue on
the PC.
02-24-2008 04:08 PM
Hello Guys,
I found out the problem was the router. I never found out what the exact problem was but,I decided to erase the start config and reprogram everything. That seemed to work perfectly. Weird huh. Thanks for everything and all your help. Oh yeah. Can someone explain what is NATIVE and how should I use it when setting up router on a stick?
02-24-2008 05:10 PM
> Can someone explain what is NATIVE and how should I use it
> when setting up router on a stick?
NATIVE vlan means those packets will be untagged on a trunk link.
HTH,
__
Edison.
02-24-2008 05:14 PM
So what you saying is that vlan1 is always native by default and can I make any other vlan I choose native? What is cisco's best practice on this subject?
02-24-2008 05:16 PM
You can have Vlan1 as the native Vlan w/o problems. Make sure the native Vlan matches on both devices (switchport and router).
Yes, you can have another Vlan as native.
HTH,
__
Edison.
02-24-2008 05:19 PM
Should any interface that is not a sub-interface be setup as the Native VLAN or can sub interfaces be setup as Native as well?
02-24-2008 05:21 PM
On the router, the only way to perform dot1q trunking is by using subinterfaces (logical interfaces).
On the switch, the native vlan is set under the physical interface.
02-24-2008 05:24 PM
Great!!! Thanks you have really helped me understand this Cisco material. It is truly demanding. Hopefully one day I can know half as much as you do.
02-24-2008 05:09 PM
Windows Firewall can do some odd things on a device.
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