400
G8332 Command Reference for ENOS 8.4
Table 177.
Port Configuration Options (continued)
Command Syntax and Usage
switchport trunk allowed vlan {add|remove} <VLAN ID (1‐4094)>
Updates the associated VLANs in trunk mode.
add enables the VLAN range in addition to the current configuration. If any
VLAN in the range does not exist, it will not be created and enabled
automatically. If a new VLAN is created and it is part of the allowed VLAN
range, the port will also be added to that VLAN.
remove eliminates the VLAN range from the current configuration. If the
Native‐VLAN is in the specified range, the smallest available VLAN from
the remaining range will become the new Native‐VLAN. If the remaining
range does not have any existing VLANs, the lowest‐numbered VLAN is
created and becomes the Native‐VLAN.
Note: The remaining VLAN range must contain at least one VLAN.
Command mode: Interface port/Interface portchannel
switchport trunk allowed vlan {all|none}
Updates the associated VLANs in trunk mode.
all associates the port to all existing regular VLANs and to any other
VLAN that gets created afterwards.
none removes the port from all currently associated VLANs and assigns the
port to the default VLAN (VLAN 1 for data ports and VLAN 4095 for the
management port).
Command mode: Interface port/Interface portchannel
no switchport trunk allowed vlan
Assigns the port to all available data VLANs.
Command mode: Interface port/Interface portchannel
switchport trunk native vlan <VLAN ID (1‐4094)>
Configures the Port VLAN ID (PVID) or Native‐VLAN used to carry untagged
traffic in trunk mode. If the VLAN does not exist, it is automatically created.
The VLAN must be present in the port's allowed VLAN range. The default
value is 1 for data ports and 4095 for the management port.
Command mode: Interface port/Interface portchannel
[no] tagpvidingress
Enables or disables tagging the ingress frames with the port's VLAN ID. When
enabled, the Native VLAN (PVID) tag is inserted into untagged and 802.1Q
single‐tagged ingress frames as outer VLAN ID.
The default setting is disabled.
Command mode: Interface port/Interface portchannel