cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
249
Views
5
Helpful
3
Replies
Highlighted
Beginner

Vlan NOT passing through trunk port

This should be a very basic fix, but I can't seem to find the answer. I have a Cisco C2960-L switch & Cisco 1921 router.

I have configured port gi0/16 on the switch to be the trunk port. I have two vlans (1-30). Port gi0/1 on the switch is on vlan 30. I have my laptop plugged into port gi0/1 on the switch and I CAN NOT ping the router (192.168.1.254). I CAN ping the router and get internet access on all other ports (gi0/2 - gi0/15), which are on the native vlan 1 of course.

 

Do I need to do anything on the router to allow certain vlans through? 

 

The command "sh int trunk" shows that vlan 30 is allowed and active. Also, that command shows "Vlans allowed on trunk 1-4094".

 

What am I missing here? 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Mentor

Re: Vlan NOT passing through trunk port

Hello,

 

I assume you have configured the router with subinterfaces ? Let's say your router is connected to the switch on port GigabitEthernet0/1, you would then put the IP address of the Vlan 1 interface on the main interface, and for Vlan 30, you would configure a subinterface. So the interface configuration on the router would be: 

 

interface GigabitEthernet0/1

description Link to Switch

ip address 192.168.1.254 255.255.256.0

!

interface GigabitEthernet0/1.30

encapsulation dot1q 30

ip address 192.168.30.1 255.255.255.0

View solution in original post

3 REPLIES 3
Highlighted
Hall of Fame Expert

Re: Vlan NOT passing through trunk port

For vlan 30, do you have a sub-interface configured with ip 192.168.1.254 on the router. The router, needs to sub-interfaces, one for vlan 30 and one for 1 and both sub-interfaces need to be configured as dot1.q.  Can you post the output of "show run" from the router as well as the switch?

HTH

 

Highlighted
VIP Mentor

Re: Vlan NOT passing through trunk port

Hello,

 

I assume you have configured the router with subinterfaces ? Let's say your router is connected to the switch on port GigabitEthernet0/1, you would then put the IP address of the Vlan 1 interface on the main interface, and for Vlan 30, you would configure a subinterface. So the interface configuration on the router would be: 

 

interface GigabitEthernet0/1

description Link to Switch

ip address 192.168.1.254 255.255.256.0

!

interface GigabitEthernet0/1.30

encapsulation dot1q 30

ip address 192.168.30.1 255.255.255.0

View solution in original post

Highlighted
Beginner

Re: Vlan NOT passing through trunk port

Yes, subinterfaces worked. I guess you have to have a whole new subnet for all the different vlans. 

 

On to a new issues though, I'll create another thread for this, but how can I control the vlans from talking to each other? Basically, I can PING one way but no the other. I can PING nodes on vlan 1 from vlan30 but I can't PING nodes from vlan1 to vlan 30.

 

I'm trying to setup guess wifi and I don't want the guess on the production network.

 

Thanks again, 

Content for Community-Ad
This widget could not be displayed.