Solved

Cisco switch trunking commands

Posted on 2010-09-08
4
487 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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…
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…

756 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