cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
798
Views
13
Helpful
3
Replies
faze1sari
Beginner

Switchport mode access

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?

3 REPLIES 3
gauravshar
Explorer

Hi,

'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.

--gaurav

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?

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