Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch
Rev 1.6.2
Mellanox Technologies
325
switchport mode
switchport mode {access | trunk | hybrid | access-dcb}
no switchport mode
Sets the switch port mode.
The no form of the command sets the switch port mode to access.
Syntax Description access Un-tagged port. 802.1q tagged traffic will be filtered.
egress traffic is un-tagged.
trunk 802.1q tagged port, un-tagged traffic will be filtered.
hybrid Both 802.1q tagged and un-tagged traffic is allowed on
the port.
access-dcb Un-tagged port, egress traffic is priority tagged.
Default access.
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 mode access
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
....
Po34 access 1
Po4096 access 1
switch (config interface ethernet 1/7) #
Related Commands show vlan
show interfaces switchport
switchport access vlan
switchport [trunk | hybrid] allowed-vlan
vlan
Note