02-11-2008 06:59 AM - edited 03-05-2019 09:04 PM
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?
02-11-2008 07:28 AM
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
02-11-2008 07:38 AM
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?
02-11-2008 07:43 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide