Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch

Rev 2.10
Mellanox Technologies
420
Mellanox Technologies Confidential
switchport access
switchport access vlan <vlan-id>
no switchport access vlan
Sets the port access VLAN.
The no form of the command sets the port access VLAN to 1.
Syntax Description vlan-id 1-4094.
Default 1
Configuration Mode Config interface ethernet
Config Interface Port Channel
History 3.1.1400 Initial version
3.2.0500 Format change (removed hybrid and access-dcb
options). Previous command format was: “switchport
{hybrid | access-dcb | access} vlan <vlan-id>”
Role admin
Example
switch (config) # interface ethernet 1/7
switch (config interface ethernet 1/7) # switchport access vlan 10
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 access 10
....
Po4096 access 1
switch (config interface ethernet 1/7) #
Related Commands show vlan
show interfaces switchport
switchport mode
switchport [trunk | hybrid] allowed-vlan
vlan
Note This command is not applicable for interfaces with port mode trunk.
only one option (“access”, “access-dcb” or “hybrid”) is applicable to configure on the
port, depends on the switchport mode of the port.