Huawei Router Switch configuration command: Computer command
pcalogin:root; using root user
password:linux; password is Linux
#shutdown-hnow; shutdown
#init0 shut down the machine
#logout, user logoff
#login, User Login
#ifconfig; show IP Address
#ifconfigeth0netmask; Set IP address
#ifconfigeht0netmaskdown; Disable IP address
#routeadd0.0.0.0GW; setting up a gateway
#routedel0.0.0.0GW; Delete Gateway
#routeadddefaultgw; set up a gateway
#routedeldefaultgw; Delete a gateway
#route; show Gateways
#ping, to send an echo pack
#telnet; remote Login
Huawei Router Switch configuration command: Switch command
[Quidway]discur; show current configuration
[Quidway]displaycurrent-configuration; show current configuration
[Quidway]displayinterfaces; Display interface information
[Quidway]displayvlanall; Display routing information
[Quidway]displayversion; display version information
[Quidway]superpassword; modify Privileged user password
[quidway]sysname; switch naming
[QUIDWAY]INTERFACEETHERNET0/1; Enter interface view
[Quidway]interfacevlanx; Enter interface view
[quidway-vlan-interfacex]ipaddress10.65.1.1255.255.0.0; Configure IP addresses for VLANs
[quidway]iproute-static0.0.0.00.0.0.010.65.1.2; Static route = Gateway
[Quidway]rip; three-tier exchange support
[Quidway]local-userftp
[quidway]user-interfacevty04; Enter the virtual terminal
[S3026-ui-vty0-4]authentication-modepassword; Set password mode
[s3026-ui-vty0-4]setauthentication-modepasswordsimple222; Set password
[S3026-ui-vty0-4]userprivilegelevel3; User Level
[QUIDWAY]INTERFACEETHERNET0/1; Enter port mode
[QUIDWAY]INTE0/1; Enter port mode
[Quidway-ethernet0/1]duplex{half|full|auto}; Configuration Port working status
[Quidway-ethernet0/1]speed{10|100|auto}; Configure Port operating rate
[Quidway-ethernet0/1]flow-control; Configure Port flow control
[Quidway-ethernet0/1]mdi{across|auto|normal}; Configure Port ping-connect
[Quidway-ethernet0/1]portlink-type{trunk|access|hybrid}; Set port operating mode
[Quidway-ethernet0/1]portaccessvlan3; When the front port joins the VLAN
[quidway-ethernet0/2]porttrunkpermitvlan{id| all}; Set trunk the Promised VLAN
[Quidway-ethernet0/3]porttrunkpvidvlan3; Set the pvid of the trunk port
[Quidway-ethernet0/1]undoshutdown; activation port
[Quidway-ethernet0/1]shutdown; Close port
[Quidway-ethernet0/1]quit; return
[Quidway]vlan3; Create VLAN
[QUIDWAY-VLAN3]PORTETHERNET0/1; add ports to VLAN
[QUIDWAY-VLAN3]PORTE0/1; Shorthand method
[QUIDWAY-VLAN3]PORTETHERNET0/1TOETHERNET0/4; add ports to VLAN
[QUIDWAY-VLAN3]PORTE0/1TOE0/4; Shorthand method
[Quidway]monitor-port; specify Mirror Port
[Quidway]portmirror; Specify mirrored port
[Quidway]portmirrorint_listobserving-portint_typeint_num; specify mirrors and Mirrors
[quidway]descriptionstring; specify VLAN descriptor characters
[Quidway]description; Delete VLAN descriptor characters
[quidway]displayvlan[vlan_id]; View VLAN settings
[quidway]stp{enable|disable}; setting build tree default shutdown
[quidway]stppriority4096; set the switch priority
[Quidway]stproot{primary|secondary}; backup set to root or root
[quidway-ethernet0/1]stpcost200; Set the cost of the switch port
[Quidway]link-aggregatione0/1toe0/4ingress|both; Port Aggregation
[Quidway]undolink-aggregatione0/1|all; Initial port is channel number
[switcha-vlanx]isolate-user-vlanenable; set Master VLAN
[Switcha]isolate-user-vlansecondary; Set the Sub VLAN included in the Master VLAN
[Quidway-ethernet0/2]porthybridpvidvlan; set Pvid for VLANs
[Quidway-ethernet0/2]porthybridpvid; Delete Pvid of VLAN
[quidway-ethernet0/2]porthybridvlanvlan_id_listuntagged; set a VLAN without identity
If the packet's Vlanid is consistent with the Pvid, the VLAN information is removed. Default pvid=1.
So set pvid for the Vlanid to be able to exchange the VLAN for untagged.