Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch

Rev 1.6.2
Mellanox Technologies
327
switchport {hybrid, trunk} allowed vlan
switchport {hybrid, trunk} allowed vlan {<vlan> | add <vlan> | remove <vlan>
all | except <vlan> | none}
Sets the port allowed VLANs.
Syntax Description
vlan
VLAN ID (1-4094) or VLAN range.
add Add VLAN or range of VLANs.
remove Remove VLANs or range of VLANs.
all Add all VLANs in available in the VLAN table.
New vlans that will be added to the vlan table will be
added automatically.
except Add all VLANs expect this VLAN or VLAN range.
none Remove all VLANs.
Default N/A
Modes/Context Config interface ethernet
Config Interface Port Channel
History 3.1.1400
Role admin
Example
switch (config) # interface ethernet 1/7
switch (config interface ethernet 1/7) # switchport hybrid allowed-vlan
all
switch (config interface ethernet 1/7) #show interfaces switchport
Interface | Mode | Access vlan | Allowed vlans
-----------|------------|-------------|---------------------------
Eth1/2 access 1
Eth1/3 access 1
Eth1/4/1 access 1
Eth1/4/2 access 1
Eth1/5 access 1
Eth1/6 access 1
Eth1/7 hybrid 1 1, 10
....
Po34 access 1
Po4096 access 1
switch (config interface ethernet 1/7) #
Related Commands show vlan
show interfaces switchport
switchport access vlan
switchport mode
vlan
Note This command is not applicable for interfaces with port mode access or access-dcb.