Celestica Documentation Portal

Find your product documents here

switchport access vlan

Configures the untagged VLAN membership for the port, VLAN.

Syntaxswitchport access vlan <vlan-id>
Command mode Ethernet and Port channel interface mode
Parameters
  • vlan-id – VLAN identifier. Range 1 – 4094.

Usage Use no switchport access vlan to remove the access VLAN configuration.
Supported Releases 1.0.0 or later
Click command config vlan member add --u <vid> port
Example sonic(conf-if-Ethernet0)# switchport access vlan 40 sonic(conf-if-Ethernet0)# sonic(conf-if-Ethernet0)# no switchport access vlan sonic(conf-if-Ethernet0)#