?
Solved

Vlan Trunking Configurations

Posted on 2011-09-22
4
Medium Priority
?
300 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
[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
  • 3
4 Comments
 
LVL 26

Accepted Solution

by:
Soulja earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The worst thing when starting a new job is when the previous Network Administrator left behind no documentation. How do you get into the devices? If you've been in this situation or just accidently mistyped your password, this article will hopefully…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

649 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