cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
527
Views
5
Helpful
1
Replies

Command switchport access vlan is useful together with trunk mode ?

eigrpy
Level 4
Level 4

Hi Anyone can talk a look the following configuration. Do you think the switchport access vlan 3 is useful together with trunk mode? Thank you

 

interface GigabitEthernet6/6
  switchport
 switchport access vlan 3
 switchport trunk allowed vlan 9
 switchport mode trunk

 channel-group 8 mode active

 

1 Accepted Solution

Accepted Solutions

devils_advocate
Level 7
Level 7

I think that because you have manually told the port it is going to be a Trunk (i.e switchport mode trunk) then the access vlan command is redundant.

The operational mode will be Trunk and if the other end is not configured as a Trunk then the port will not come up.

If you wanted to have the port failover to access mode if a Trunk is not negotiated then you can use the #switchport mode dynamic desirable. This means that if the other end wants to be a Trunk, you will get a Trunk. If the negotiation fails or the other end is configured as an access port then that is what you will get. 

 

View solution in original post

1 Reply 1

devils_advocate
Level 7
Level 7

I think that because you have manually told the port it is going to be a Trunk (i.e switchport mode trunk) then the access vlan command is redundant.

The operational mode will be Trunk and if the other end is not configured as a Trunk then the port will not come up.

If you wanted to have the port failover to access mode if a Trunk is not negotiated then you can use the #switchport mode dynamic desirable. This means that if the other end wants to be a Trunk, you will get a Trunk. If the negotiation fails or the other end is configured as an access port then that is what you will get. 

 

Review Cisco Networking for a $25 gift card