clear port vlan
8-8 802.1Q VLAN Configuration
Syntax
set port vlan port-string pvid [modify-egress | no-modify-egress]
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
ThePVIDisusedtoclassifyuntaggedframesastheyingressintoagivenport.Ifthespecified
VLANhasnotalreadybeencreated,thiscommandwillcreateit.Itwillprompttheusertoaddthe
VLANtotheport’segresslistasuntagged,andtoremovethedefaultVLAN
fromtheport’s
egresslist.
Example
Thisexampleshowshowtoaddge.1.10totheportVLANlistofVLAN4(PVID4).SinceVLAN4
isanewVLAN,itiscreated.Thenport
ge.1.10isaddedtoVLAN4’suntaggedegresslist.The
portmustthenbeclearedfromtheegresslistofVLAN1(thedefaultVLAN)asshown:
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
Usethiscommandtoresetaport’s802.1QportVLANID(PVID)tothehostVLANID1.
Syntax
clear port vlan port-string
Parameters
Defaults
None.
port‐string Specifiestheport(s)forwhichtoconfigureaVLANidentifier.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage 5‐2.
pvid SpecifiestheVLANIDoftheVLANtowhichport(s)willbeadded.
modify‐egress (Optional)Addsport(s)
toVLANʹsuntaggedegresslistandremovesthem
fromotheruntaggedegresslists.
no‐modify‐egress (Optional)Doesnotpromptforormakeegresslistchanges.
port‐string Specifiestheport(s)toberesettothehostVLANID1.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage 5‐2.