Switchport mode access

Unanswered Question
Feb 11th, 2008
User Badges:

Is the command switchport mode access necessary on a port that is already configured with a switchport acc vlan XX command? Do these two commands accomplish the same thing?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.3 (3 ratings)


'Switchport mode access' command just keep your port away from becoming 'trunk' forcefully. 'switchport access vlan XX' just let your port be accessible to that vlan only. If you configure 'switchport access vlan XX' only, this also should not create much of problem because it will make your port do what access ports are meant for, just one vlan accessiblity.


faze1sari Mon, 02/11/2008 - 07:38
User Badges:

What would be best practice? would you put the port into mode access and then configure the vlan for the port in order to ensure the port will never try to migrate the port to a trunk?

srue Mon, 02/11/2008 - 07:43
User Badges:
  • Blue, 1500 points or more

best practice would be to use both commands along with "switchport nonegotiate".

On some switches you can use the command "switchport host" which is a macro for the following two commands:

switchport mode access

spanning-tree portfast


This Discussion