Huawei router switch configuration command encyclopedia?

Are you still worried? Don't worry, the following is what I collected for you. Welcome to read:

the method of

A, computer commands

# 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] display VL * * * l;; Show 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; Entrance mode

[Quidditch] Intel0/1; Entrance 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 }; The configuration port is flat and twisted.

[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; Enable port

[Quidway-Ethernet 0/ 1] shutdown; closed port

[Quit-ethernet0/1]; return

[Quidditch] vlan3 establishes 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 mapping port

[Quidditch] Potter mirror image; Specified mapping port

[Quidway]portmirrorint _ list observing-port int _ typeint _ num; Specify the image and map the image.

[Quidditch] descriptionstring specifies the VLAN descriptor

[Quidditch] Description; Delete VLAN descriptor

[Quidway]display VLAN[VLAN _ id]; View VLAN settings

[Quidway]STP { enable | disable }; Set the spanning tree, which is off by default.

[Quidditch] stppriority4096 Set the priority order of switches.

[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 interworking vlan is set to unmarked.

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 enters the interface

[Quidway-serial 0]IP address; Configure port IP address

[Quidway-serial 0]undo shut down; Enable 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

[Quidway-ui-vt y0-4] exit

[Quidditch] DebuggingDLcallSerial 0 displays all information.

[Quidditch] Debugging event information of debug DLceventSerial 0

[Quidditch] debugginghdlcpacketserial0 displays information about the package.

Fourth, Huawei router switch configuration command: static routing:

[Quidway]iproute-static { interface number | next hop }[value][reject | black hole]

For example: Quidditch IP routing-static129.1.0.01610.0.2.

[Quidditch] iproute-static129.10.0255.255.0.010.0.2

[Quidditch] iproute-static129.1.0.016serial2

[Quidditch] IP route-static 0.0.0.010.0.0.2

5. Huawei router switch configuration command: dynamic routing:

[Quidditch] rip sets up dynamic routing

[Quidditch] ripwork Set Work Permissions

[Quidditch] ripinput sets permissions

[Quidditch] ripoutput Set Export Permission

[Quidditch-RIP] network1.0.0.0; Set up a switched routing network.

[quidditch-rip] network all; Set up switching with all networks

[quidditch-rip] peerip-address;

[Quidditch -rip] Summary; Routing aggregation

[Quidditch] ripversion1; Set the job to version 1.

[Quidditch] ripversion2multicast sets version 2, multicast mode.

[Quidway-Ethernet 0]rip split-horizon; Horizontal offset slip distance

[Quidditch] Lautreda. The fourth century BC; Configure the ID of the router.

【 Quidditch 】 ospfenable starts OSPF protocol.

[Quidway-OSPF]import-routed direct; Introduce direct routing

[Quidway-serial 0]ospfenablearea; Configure OSPF area

6. Huawei router switch configuration command: The standard access list command format is as follows:

ACL[match-order config | auto]; Preset preamble matching.

Rule [normal | special] {permit | deny} [source source-addrsource-wildcard |any]

Example: [Quidditch ]acl 10

[Quidway-ACL- 10]rulenormalpermitsource 10 . 0 . 0 . 00 . 0 . 0 . 255

[Quidway-ACL- 10]rulenormaldenysourceany

Seven. Huawei router switch configuration command: expansion suite access control list configuration command.

Configure the access list of TCP/UDP protocol extension suite:

Rule {Normal | Special} {Allow | Deny} {tcp | udp} Source {| Any} Destination | Any}

[operation]

Configure the access list of the ICMP protocol extension suite:

Rule {Normal | Special} {Allow | Deny} icmp Source {| Any] Destination {| Any]

[icmp code] [logging]

8. Huawei router switch configuration command: the meaning of the access control list operator of the extension suite.

Equalportnumber is competent.

Greater than the port number; Bigger than ...

Less than port number; absent

Not equal to the port number; different

range port number 1 port number 2; Interval/section

9. Huawei Router Switch Configuration Command: Example of Access Control List of Extension Suite

[Quidditch ]acl 10 1

[Quidway-ACL- 10 1]ruledenysouceanydestinationany

[Quidway-ACL- 10 1]rulepermitcimsourceanydestinationanyicmp-type echo

[Quidway-ACL- 10 1]rulepermiticmpsourceanydestinationanyicmp-type echo-reply

[Quidditch ]acl 102

[Quidway-ACL-102] Rulepertipsource10.0.010.0.0.0 Destination 202.0.0.0.010.0.0.0.

[Quidway-ACL- 102]ruledenyipsourceanydestinationany

[Quidditch ]acl 103

[Quidway-ACL- 103]rulepermittcpsourceanydestination 10 . 0 . 0 . 10 . 0 . 0 . 0 destination-portequalftp

[Quidway-ACL- 103]rulepermittcpsourceanydestination 10 . 0 . 0 . 20 . 0 . 0 destination-port equal

[Quidditch] Firewall enabled

[Quidditch] Firewall Default Allow | Deny

[Quidditch] Internet 0

[Quidway-Ethernet 0] firewall packet filter 10 1 inbound | outbound

X Huawei router switch configuration command: address translation configuration example

[Quidditch] Firewall enabled

[Quidditch] Firewall Default License

[Quidditch] ACL101; The internal designated host can enter e0.

[Quidway-ACL- 10 1]ruledenyipsourceanydestinationany

[Quidway-ACL- 10 1]rulepermitipsource 129 . 38 . 1. 10 destination any

[Quidway-ACL- 10 1]rulepermitipsource 129 . 38 . 1.20 destination any

[Quidway-ACL- 10 1]rulepermitipsource 129 . 38 . 1.30 destination any

[Quidway-ACL- 10 1]rulepermitipsource 129 . 38 . 1.40 destination any

[quidway-ACL-101] exit.

[Quidditch] Internet 0

[Quidway-Ethernet 0] firewall packet filter 10 1 inbound

[Quidditch] ACL102; Allow packets from specific external hosts and ports larger than 1024 to enter S0.

[Quidway-ACL- 102]ruledenyipsourceanydestinationany

[Quidway-ACL- 102]rulepermittcpsource 202 . 39 . 2 . 30 destination 202 . 38 . 160 . 10

[Quidway-ACL- 102]rulepermittcpsourceanydestination 202 . 38 . 160. 10 destination-port great-than

1024

[Quidway-ACL- 102] Exit

[quidditch ]ints0

[Quidway-serial 0]firewall packet-filter 102 inbound; Let 202.38. 160. 1 be the router exit IP.

[quidway-serial0] natoutbound101interface; Easyip, when the ip allowed by acl 10 1 exits this interface, it will change the source address.

XI。 Huawei Router Switch Configuration Command: Internal Server Address Translation Configuration Command Static nat:

NAT server global[port]inside bus[protocol]; Use inside_port when global_port is not written.

natserverglobal 202 . 38 . 160 . 1 inside 129 . 38 . 1 ftptcp

[Quidway-serial 0]NAT server global 202 . 38 . 160 . 1 inside 129 . 38 . 1.2 telnettcp

natserverglobal 202 . 38 . 160 . 1 inside 129 . 38 . 1.3 TCP

Public network IP: 202.38.160.101~ 202.38.103 can be used. ; Original examples of foreign visits

[Quidditch] NAT address-group 202.38.160.10/202.38.160.103pool1; Establish address pool

[Quidditch ]acl 1

[Quidway-ACL- 1]rulepermitsource 10. 10. 10. 10.00 . 0.0 . 255; Specify the allowed internal network.

[Quidway-ACL- 1]ruledenysourceany

[Quidway-ACL- 1]int serial 0

[Quidditch-serial 0] natoutbound1address-grouppool1; Take IP from the address pool of s0 port for external access.

natserverglobal 202 . 38 . 160 . 10 1 inside 10. 1 10. 10. 1 FTP TCP

natserverglobal 202 . 38 . 160 . 102 inside 10. 1 10. 10.2 TCP

natserverglobal 202 . 38 . 160 . 1028080 inside 10. 1 10. 10.3 TCP

[Quidway-serial 0]natserver global 202 . 38 . 160 . 103 inside 10. 1 10. 10.4 * * * tpudp

Huawei router switch configuration command: PPP setting: [quidway-s0] link-protocol PP; Default protocol

12. Huawei router switch configuration command: PPP verification:

Main prescription: Pap |chap

[Quidway]local-userq 2 password { simple | cipher } hello; Router 1

[Quidditch] Interface Series 10

[Quidway-serial 0]PPP authentic ation-mode { pap | chap }

[Quidway-serial 0]pppchapuserq 1; Pap, there is no such sentence.

Thirteen. Huawei routing switch configuration command: pap Testee:

[Quidditch] interfaceserial0 Router 2

[quidway-serial0] pppppaplocal-userq2password {simple | cipher} Hello.

Fourteen Huawei router switch configuration command: chap Testee:

[Quidditch] interfaceserial0 Router 2

[Quidway-serial 0]pppchapuserq 2; Name of your own router

[Quidway-serial 0]local-userq 1 password { simple | cipher } hello; Opposite router name

Frame Relay Binomial 6-6 1

[q 1]fr switching

[q 1]ints 1

IP address192.168.34.51255.255.0.

link-protocol fr; Encapsulated frame relay protocol

[q 1-serial 1]fri interface-type DCE

[q 1-serial 1]frd LCI 100

[q 1-serial 1]frinarp

[q 1-serial 1]fr mapi 192. 168 . 34 . 52 DLCI 100

[Q2]int 1

[Q2-serial 1]IP address192.168.34.52255.255.255.0

[Q2-serial 1] link protocol

[Q2-serial 1]f interface type dte

[Q2-serial 1]frd LCI 100

[Q2-serial 1] Frinap

[Q2-serial 1]fr mapi 192. 168.34 . 5 1 DLCI 100

Twenty-five Huawei Router Switch Configuration Command: Frame Relay Monitoring

[q 1]displayfrlmi-info[]interface type number]

[q 1] display map

[q 1]displayfrpvc-info[serial interface-number][dlcidlci-number]

[q 1]displayfrdlci- switch

[q 1] display interface

[q 1]resetfrinarp-info

[q 1] All debugging functions [Interface type number]

[q 1] debugging function

[q 1] Debugging Preview [Interface Type Number]

[q 1] debugging

16. Huawei router switch configuration command: Start ftp service:

[Quidway]local-userftppassword { simple | cipher } aaaservice-type FTP

[quidditch ]ftpserverenable