Celestica Documentation Portal

Find your product documents here

switchport trunk allowed vlan add

Configures the tagged VLAN membership for the port, VLAN.

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

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