clear port vlan
Syntax
set port vlan port-string pvid [modify-egress | no-modify-egress]
Parameters
port‐string
pvid
modify‐egress
no‐modify‐egress (Optional) Does not prompt for or make egress list changes.
Defaults
None.
Mode
Switch command, read‐write.
Usage
The PVID is used to classify untagged frames as they ingress into a given port. If the specified
VLAN has not already been created, this command will create it. It will prompt the user to add the
VLAN to the port's egress list as untagged, and to remove the default VLAN from the port's
egress list.
Example
This example shows how to add ge.1.10 to the port VLAN list of VLAN 4 (PVID 4). Since VLAN 4
is a new VLAN, it is created. Then port
port must then be cleared from the egress list of VLAN 1 (the default VLAN) as shown:
C2(su)->set port vlan ge.1.10 4
C2(su)->set vlan 4 create
C2(su)->set vlan egress 4 ge.1.10 untagged
C2(su)->clear vlan egress 1 ge.1.10
clear port vlan
Use this command to reset a port's 802.1Q port VLAN ID (PVID) to the host VLAN ID 1.
Syntax
clear port vlan port-string
Parameters
port‐string
Defaults
None.
8-8 802.1Q VLAN Configuration
Specifies the port(s) for which to configure a VLAN identifier. For a detailed
description of possible port‐string values, refer to "Port String Syntax Used
in the CLI" on page 5‐2.
Specifies the VLAN ID of the VLAN to which port(s) will be added.
(Optional) Adds port(s) to VLANʹs untagged egress list and removes them
from other untagged egress lists.
.1.10 is added to VLAN 4's untagged egress list. The
ge
Specifies the port(s) to be reset to the host VLAN ID 1. For a detailed
description of possible port‐string values, refer to "Port String Syntax Used
in the CLI" on page 5‐2.