• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1015
  • Last Modified:

switchport mode trunk / access

Is there ever any good reason (or is bad practice) to have a switchport in trunk mode AND have it as an access port as well?

switchport mode trunk
switchport access vlan 20
0
B1izzard
Asked:
B1izzard
3 Solutions
 
jgibbarCommented:
The access vlan will not have an affect unless the switchport mode access command is issued.
0
 
Dangle79Commented:
yeah, you can't have a port in both modes at the same time
0
 
SouljaCommented:
Actually with this configuration, the port is an access port in vlan 20, until it is connected to another trunk port, in which is will switch to a trunk port carry all vlans.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SouljaCommented:
Correction, this port is an access port as long as nothing is plugged into it. Once a device is plugged into it, it will change to a trunk port. Essentially, this is a useless configuration.
0
 
Dangle79Commented:
that's true, but it can't function in both capacities at the same time.
i don't know why you'd need to have it configured that way unless, you swap around cables frequently and want to make sure that port only accesses vlan 20, if it by chance gets connected to a host device, or you aren't sure if the switch on the other end of the cable has trunking enabled but you're certain that everything on the other end will only need to talk on 20 because sans trunking that's all you'll get
0
 
B1izzardAuthor Commented:
Thanks.  That clears it up.  I didn't know for sure if when you put it in trunk mode that it somehow wasn't able to use the access as well.  I ask because I see this from time to time, but apparently it is just a useless remnant that needs to be removed.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now