05-07-2019 01:35 AM
When you configure an interface on Cisco 3850 switch to be in a specific vlan you enter :
1)switchport mode access
2) switchport access vlan ...number...
why do we need both commends if the second command is enough?
05-07-2019 01:59 AM
05-07-2019 02:05 AM
the command switchport mode determine the mode of the port , if access or trunk and the default there is dynamic negotiation to choose mode , if the mode is access either by the command swtichport mode access or dynamic then the second command switchport access vlan X means if the port decide to be access then use vlan x , so you write the second command only switchport access vlan X but you depend on negotiation to decide the mode access .
switch(config-if)#swichport mode ?
access Set trunking mode to ACCESS unconditionally
dynamic Set trunking mode to dynamically negotiate access or trunk mode
trunk Set trunking mode to TRUNK unconditionally
Switch(config-if)#sw access ?
vlan Set VLAN when interface is in access mode
05-07-2019 08:11 AM
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