cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
946
Views
13
Helpful
3
Replies

Switchport mode access

faze1sari
Level 1
Level 1

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
Level 2
Level 2

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card