Solved

Vlan Trunking Configurations

Posted on 2011-09-22
4
286 Views
Last Modified: 2012-05-12
It is my understanding that a switch port can be either access or trunk port and not both at the same time.  When you configure a port as "switchport mode trunk", the configuration on the same port of "swithport ccess vlan xx" will be ignored because it has no consequence or noeffect

Looking at the configuration below, I notice the port in question is in trunk mode even though the command did not explicitly set the port to trunk

sh run int g0/2
Building configuration...

Current configuration : 109 bytes
!
interface GigabitEthernet0/2
 switchport access vlan 5
 switchport trunk native vlan 5
 no ip address
!

sh int status
Gi0/2  connected    trunk      a-full a-1000 10/100/1000BaseTX

My question is; does the command " switchport trunk native vlan" turn trunking to on just as the command "switchport mode trun"?

Thanks
0
Comment
Question by:donemore2003
  • 3
4 Comments
 
LVL 26

Accepted Solution

by:
Soulja earned 500 total points
ID: 36582489
No. When you don't use either of the mode commands the port is essentially dynamic. It the port above connects to another trunk port, it will negotiate into a trunk and have vlan 5 as its native. Otherwise, it is an access port in vlan 5. This is why is it best to put ports in a certain mode to insure they remain that way.
0
 
LVL 26

Expert Comment

by:Soulja
ID: 36582500
You can confirm what I am saying by entering:

sh interface gig0/2 switchport
0
 
LVL 26

Expert Comment

by:Soulja
ID: 36582620
Just to add:

switchport mode trunk or switchport mode access sets to port to a static access or trunk port. In the case of switchport mode trunk, it is still possible for it to try to negotiate with other dynamic ports so you add the command switchport trunk nonnegotiate to keep it from sent DTP packets.
0
 

Author Comment

by:donemore2003
ID: 36582810
Thank you Soulja.  Thanks for pointing out that by not specifying the mode, the port can either be access or trunk depending on what is connecting to that port.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Layer 2 versus layer 3 10 116
Classlful vs Classless subneting 18 73
Ping Through ASA Firewall 6 46
Losing connectivity from some servers - Restore connectivity if i ping them 3 40
I see many questions here on Experts Exchange regarding switch port configurations and trunks. This article is meant for beginners in the subject to help to get basic knowledge about Virtual Local Area Network (VLAN (http://en.wikipedia.org/wiki/Vir…
This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …

820 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