Solved

Cisco switch trunking commands

Posted on 2010-09-08
4
486 Views
Last Modified: 2012-05-10
If I set the "switchport mode trunk" command on an interface, but don't specify the "switchport trunk allowed vlan X,X" command as well, what vlans are allowed through?  Also, if this same interface has the command set on it "switchport access vlan 2", does that do anything or is it a non factor since the interface is set to trunk mode?
0
Comment
Question by:jpletcher1
4 Comments
 
LVL 24

Accepted Solution

by:
rfc1180 earned 42 total points
ID: 33629445
>but don't specify the "switchport trunk allowed vlan X,X" command as well, what vlans are allowed through?

all of them are allowed

> Also, if this same interface has the command set on it "switchport access vlan 2", does that do anything or is it a non factor since the interface is set to trunk mode?

non-factor
0
 
LVL 6

Assisted Solution

by:Gunter17
Gunter17 earned 42 total points
ID: 33629501
By default a trunk link carries all VLANs that exist on the switch. This is because all VLANs are active on a trunk link; and as long as the VLAN is in the switch's local database, traffic for that VLAN is carried across the trunks.

On a Cisco switch, ports are assigned to a single VLAN. These ports are referred to as access ports and provide a connection for end users or node devices, such as a router or server.
...
For the IOS device, you must first select the port (or port range for integrated IOS) and then use the switchport access vlan command followed by the VLAN number.

This is all from ciscopress.com.

To answer your question outright:
1. If a switchport trunk allowed vlan is not specified and the port is in trunk mode, the port belongs to all VLANs.
2. If the switchport access vlan 2 command is given, but the port is in trunk mode the command will be ignored.

0
 
LVL 17

Assisted Solution

by:Kvistofta
Kvistofta earned 41 total points
ID: 33629672
0
 

Author Closing Comment

by:jpletcher1
ID: 33629695
Thanks guys, this was the info I was looking for.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Some sers suddenly getting error popup msg 28 92
winscp 000webhost.com 6 71
Stacked switch question 7 40
Simultaneous work of Wi-Fi and LAN on Win10 laptop 4 58
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question