189
CHAPTER 3
INTRODUCTION TO CLI
3.9.47.10 (config-if)# switchport mode
Syntax:
(config-if)# switchport mode { access | trunk | hybrid }
Explanation:
Configure VLAN mode for this specific interface.
Parameters:
{ access | trunk | hybrid }: Specify the VLAN mode.
Negation:
(config-if)# no switchport mode
Show:
# show vlan status
3.9.47.11 (config-if)# switchport trunk allowed vlan
Syntax:
(config-if)# switchport trunk allowed vlan { all | none | [ add | remove | except ] <vlan_list> }
Explanation:
Configure allowed VLANs when this interface is in trunk mode.
Parameters:
{ all | none | [ add | remove | except ] <vlan_list> }: Specify one of the options.
all:
All VLANs.
none:
No VLANs.
add:
Add VLANs to the current list.
remove:
Remove VLANs from the current list
except:
All VLANs except the following specified in <vlan_list>.
<vlan_list>:
Specify the VLAN list.
Negation:
(config-if)# no switchport trunk allowed vlan
Show:
# show vlan status
3.9.47.12 (config-if)# switchport trunk native vlan
Syntax:
(config-if)# switchport trunk native vlan <pvid>
Explanation:
Configure native VLAN ID in trunk mode for this specific interface.
Parameters:
<pvid>: Specify the port VLAN ID for this specific interface.
Negation:
(config-if)# no switchport trunk native vlan
Show:
# show running-config
Summary of Contents for MSW-4424C Series
Page 1: ...1 MSW 4424C MSW 4424CS L2 Gigabit Carrier Ethernet Switch ...
Page 382: ......