A, computer commands
PCAlogin: root; Use root user
Password: linux password is linux.
# shut down-hnow; Turn off the appliances
# init0 Turn off the appliance.
# Logout; User logout
# Login; User login
# ifconfig displays the IP address
# ifconfigeth0netmask setting IP address
# ifconfigeht0netmaskdown disables IP addresses.
# route ad 0 . 0 . 0 . 0 GW; Set the gateway
# routed El 0 . 0 . 0 . 0 GW; Delete gateway
# routeadddefaultgw setting gateway
# routedeldefaultgw delete gateway
# Route; Display gateway
# ping sends an echo packet
# telnet remote login
Second, Huawei router switch configuration command: switch command
[Quidditch] discur displays the current configuration.
[Quidditch] Displays the current-configuration; Display the current configuration
[Quidditch] Display interface; Display interface information
[Quidditch] displayvlanall displays routing information.
[Quidditch] Display version; Display version information
[Quidditch] Super superpassword Modify Privileged User Password
[Quidditch] The name of the sysname switch
[Quidditch] Interface Ethernet 0/1; Enter the interface view
[Quidditch] interfacevlanx enters the interface view
[Quidway-Vlan-interfacex]IP address 10 . 65 . 1 . 1255 . 255 . 0 . 0; Configure the IP address of the VLAN.
[Quidditch] IP route-static 0.0.0.010.65.1.2; Static route = gateway
[Quidditch] rip three-layer exchange support
[Quidditch] local user ftp
[Quidditch] User interface vty 04;; Enter the virtual terminal
[s 3026-ui-vt y0-4] authentication mode password; Set password mode
[s 3026-ui-vt y0-4]set authentic ation-modepasswordsimple 222; Set password
[s 3026-ui-vt y0-4]userprivilegelevel 3; User level
[Quidditch] Interface Ethernet 0/1; Enter port mode
[Quidditch] Intel0/1; Enter port mode
[Quidway-Ethernet 0/ 1] duplex {half duplex | full duplex | automatic}; Configure port working status
[Quidway-Ethernet 0/ 1] speed {10 |100 | auto}; Configure port working rate
[Quidway-Ethernet 0/ 1] flow control; Configure port flow control
[Quidway-Ethernet 0/ 1]MDI { cross | auto | normal }; Configure port butt joints and torsion joints.
[Quidway-Ethernet 0/ 1]port link-type { trunk | access | hybrid }; Set the port working mode
[Quidway-Ethernet 0/ 1]portaccessvlan 3; The current port is added to the VLAN.
[Quidway-Ethernet 0/2]porttrunkpermitvlan { ID | All }; Set VLAN allowed for trunking.
[Quidway-Ethernet 0/3]porttrunkvidvlan 3; Set the PVID of the trunk port.
[Quidway-Ethernet 0/ 1]undo shut down; Activation port
[Quidway-Ethernet 0/ 1] shutdown; Close the port
[Quit-ethernet0/1]; return
[Quidditch] vlan3 creates VLAN
[Quidway-VLAN 3]port Ethernet 0/ 1; Add port in VLAN
[Quidditch-VLAN 3] porte0/1; short form
[Quidway-VLAN 3] port Ethernet 0/ 1 port Ethernet 0/4; Add port in VLAN
[Quidditch-VLAN 3] porte0/1toe0/4; short form
[Quidditch] Monitor-port; Specify the mirror port
[Quidditch] Potter mirror image; Specify the mirror port.
[Quidway]portmirrorint _ list observing-port int _ typeint _ num; Specify mirroring and being mirrored
[Quidditch] descriptionstring specifies the VLAN descriptor.
[Quidditch] Description; Delete VLAN description characters
[Quidway]display VLAN[VLAN _ id]; View VLAN settings
[Quidway]STP { enable | disable }; Sets the spanning tree that is turned off by default.
[Quidditch] stppriority4096 Set the priority of the switch.
[Quidway]stproot { primary | secondary }; Set as root or backup of root
[Quidway-Ethernet 0/ 1]STP cost 200; Set the cost of the switch port.
[Quidway]link-aggregation 0/ 1 toe 0/4 ingress | both; ethernet channel
[Quidditch] undo link-aggregation e 0/1| all; The starting port is the channel number.
[switch a-vlanx]isolate-user-VLAN enable; Set the primary vlan
[switch a]isolate-user-VLAN secondary; Set the sub-vlan contained in the main vlan.
【Quidway-Ethernet 0/2】porthybridpvidvlan; Set the pvid of vlan.
[Quidway-Ethernet 0/2]porthybridpvid; Delete the pvid of vlan
[Quidway-Ethernet 0/2]porthybridvlanvlan _ id _ listuntagged; Set an unlabeled vlan.
If the vlanid of the packet is consistent with the PVId, the vlan information will be deleted. The default PVID= 1.
Therefore, the PVID is set to vlanid and the interoperable vlan is set to unlabeled.
3. Huawei router switch configuration command: router command
[Quidditch] Display version; Display version information
[Quidditch] Displays the current-configuration; Display the current configuration
[Quidditch] Display interface; Display interface information
[Quidditch] displayiproute displays routing information.
[Quidditch] sysnameaabbcc Change the host name
【 Quidditch 】 Superpass wrod123456; Set password
[Quidditch] interfaceserial0 provider
[Quidway-serial 0]IP address; Configure port IP address
[Quidway-serial 0]undo shut down; Activation port
[Quidway]link-protocol HDLC; Binding hdlc protocol
[Quidway] user interface vty04
[Quidway-ui-vt y0-4] authentication mode password
[Quidway-ui-vt y0-4]set authentic ation-modepasswordsimple 222
[Quidway-ui-vt y0-4] User permission level 3