Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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
New Member

Re: Switchport mode access

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

New Member

Re: Switchport mode access

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?

Gold

Re: Switchport mode access

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

381
Views
13
Helpful
3
Replies