Huawei router commandsSimilar to cisco, using it can greatly facilitate our daily work. Let's take a look at the following Huawei router commands.
Huawei router command 1
1. Delete the device configuration: reset saved-configuration
2. Restart: reboot
3. Check the current configuration file: display current-configuration
4. Change the device name to sysname.
5. save configuration: save
6. Enter the privileged mode: sysview
Note:Huawei only has two-layer mode, unlike the conf t after cisco enale.
7. Define acl:
- Acl nubmere XXXX3000 or above)
- Rule permit/deny IP/TCP/UDP and other source XXX. XXX (reverse)
- Destination XXX. XXX (reverse) eq
Note:By default, Huawei does not have deny any
8. firewall port loading ACL: [Quidway-Ethernet0/0] firewall packet-filter 3000 inbound
9. Add a new user on the firewall: local-user XXX user Name) password simple XXX password) local-user XXX service-type ppp
10. delete a command: undo is similar to cisco's no)
Huawei router command 2
1. On the master vrrp device, specify:
- stp instance 0 root primary
- stp TC-protection enable
- stp enable
2. Specify the following on the vrrp device:
- stp instance 0 root secondary
- stp TC-protection enable
- stp enable
3. attach an acl to a vswitch:
First enter the interface mode, enter the qos command: [shzb-crsw-s6506-1-GigabitEthernet1/0/1] qos
Enter the following command: [shzb-crsw-s6506-1-qoss-GigabitEthernet1/0/1] packet-filter inbound ip-group 3000
Note:Huawei switches can only specify the inbound direction
4. Enable ospf:
- [shzb-crsw-s6506-1]ospf 100
- [shzb-crsw-s6506-1-ospf-100]area 0
- [shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]network XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
5. Configure the re-release of ospf:
- [shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]quit
- [shzb-crsw-s6506-1-ospf-100]import-route static
Establish a link-group similar to cisco channel-group): link-aggregation group 1 mode manual, and then enter the interface: port link-aggregation group 1
Note:Before enabling VRRP, enter vrrp ping-enable to enable the customer to ping the gateway.
The Study of Huawei router commands is not complete yet. We will continue to summarize it in the next article. Please look forward to the following: basic summary of Huawei router commands