?
Solved

Vlan Trunking Configurations

Posted on 2011-09-22
4
Medium Priority
?
296 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

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

765 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