A command line configuration view
1 , a view mode
<Huawei> User View
<Huawei>system-view
[The Huawei] System view
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0 / 0/1] interface view
quit back to previous view
Direct user view retreated return
Or ctrl + z
? Inquire
Tab Completion
Shorthand command
2 , the command line basic operation
<Huawei> display version ( see system version )
[Huawei] sysname Switch ( modify host name )
<Huawei> save save the current configuration
<Switch> the display-Current Configuration ( see configuration )
3 , closed and open interfaces
[Switch-the GigabitEthernet0 / 0 /. 1] the shutdown ( closed Interface )
[Switch-the GigabitEthernet0 / 0 /. 1] Use the undo the shutdown ( open interfaces )
4 , set the terminal password:
[Switch]user-interface console 0
[Switch-ui-console0]set authentication password cipher huawei123 [Switch-ui-console0]authentication-mode password
5 , change automatically exit timeout :
[Switch-ui-console0]idle-timeout 60
6 , to restore the factory default
1)<Huawei>reset saved-configuration
Prompted to Recovery Option Y
2)< Huawei > reboot
Prompted to save the selected N
Prompted to restart selected Y
Second, the router
1 , according to the router to forward packets is the routing table
2 , the principle:
Router received a packet, the packet inspection target IP address, and then find out the route to reach the destination in the routing table, and choose the best route forward packets according to the best route.
3 , configure the router interface IP address
[Router]interface GigabitEthernet 0/0/0
[Router-GigabitEthernet0/0/0]ip address 192.168.1.254 24
<Router> display ip routing-table ( routing table )
Course Essay:
<Huawei> User View
<Huawei>system-view
[The Huawei] System view
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0 / 0/1 ] interface view
[Huawei]interface Ethernet 0/0/10
[Huawei-Ethernet0/0/10]
quit back to previous view
return directly return to user view
ctrl+z
? Inquire
Tab Completion
Shorthand command
Basic Commands
<Huawei> Run the display Version View VRP system version
[Huawei] sysname Switch modify the host name
<Switch> Run the display the Configuration Current- check the configuration
Configure plaintext password to enter the user view
[Switch]user-interface console 0
[Switch-ui-console0]authentication-mode password
[Switch-ui-console0]set authentication password simple 123
The user enters user view cipher text password
[Switch]user-interface console 0
[Switch-ui-console0]authentication-mode password
[Switch-ui-console0]set authentication password cipher 123
Close terminal message appears:
<Switch>undo terminal monitor
Configuring automatic logoff timeout
[Switch]user-interface console 0
[Switch-ui-console0]idle-timeout 1440
<Sl> Save Save
<Sl> reboot reboot
Restore Factory Defaults
<S1>reset saved-configuration
<S1>reboot
Lost the first n is not saved, lose y reboot
[Huawei]interface GigabitEthernet 0/0/2
[The Huawei-the GigabitEthernet0 / 0/2] the shutdown closed Interface
[The Huawei-the GigabitEthernet0 / 0/2] Use the undo the shutdown opening Interface