Huawei basic configuration command
Huawei Basic Command
system-view
[Huawei]interface gigabitethernet 0/0/1 [System View]
[Huawei Gigabit Ethernet 0/0/1][Interface View]
ctrl+z [Exit Previous]
[666]sysname caiwu [change name]
[caiwu]display version [View version]
[caiwu]display current-configuration [View current configuration]
undo terminal monitor
Set password on router:
[caiwu]user-interface console 0 [Enter to console 0 interface]
[caiwu-ui-console0]authentication-mode password
[Set password in authentication mode]
Set password on switch:
[Huawei]user-interface console 0 [Enter console 0 interface]
[Huawei-ui-console0]set authentication password simple 123 [View authentication plaintext password]
[Huawei-ui-console0]set authentication password cipher 123 [View authentication password]
Create account and password:
[caiwu]aaa
[caiwu-aaa]local-user 123 password cipher 123
save [Save Configuration Input Y Confirm]
reboot
reset saved-configuration
[Huawei-ui-console0]screen-length 10 [Display interface lines]
[Huawei-ui-console0]idle-timeout 0 30
How long does it take to return to the original screen?
display mac-address [View MAC address table]
[Huawei]lldp enable [Enable LLDP protocol]
[Huawei]display lldp neighbor brief
[View Neighbor Summary Information]
display bridge mac-address
Check the MAC address of the switch
[Huawei]display lldp neighbor [View neighbor details]
[Huawei]display lldp neighbor interface gigabitethernet 0/0/5 [View detailed neighbor information of an interface]
[Huawei-GigabitEthernet0/0/4]undo negotiation auto
[Cancel automatic negotiation]
[Huawei-GigabitEthernet0/0/4]duplex full /half
[Duplex: Full/Half]
[Huawei-GigabitEthernet0/0/4]speed 10/100/1000
[Set transmission speed 10/100/1000]
Set IP to switch
[Huawei]interface vlan 1
[Huawei-Vlanif1]ip address 192.168.1.66 24
display ip interface brief [View IP interface details]
display arp [View ARP cache table]
display ip routing-table
[Huawei]user-interface vty 0 4
[Enter virtual terminal interface, number of people allowed to log in at the same time]
[Huawei-ui-vty0-4]authentication-mode password
[Authentication Mode Password]
[Huawei-ui-vty0-4]protocol inbound telnet
[Configuration interface protocol is Telnet remote]
[Huawei-ui-vty0-4]user privilege level 15
[Configure user's permission after login]