Solved

Cisco switch trunking commands

Posted on 2010-09-08
4
491 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month4 days, 5 hours left to enroll

630 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