1. Configure Telnet
# Enter system view.
<H3C> System-view
# Enter the VTY0 user interface view.
[H3C] user-interface vty 0
# Password Authentication is set up for users who log into the switch through the VTY0 port.
[h3c-ui-vty0] authentication-mode password
# Set the user's authentication password to password mode, password is 123456.
[h3c-ui-vty0] Set authentication password cipher 123456
# Set the command level to be accessed after logging in from the VTY0 user interface to 2 levels.
[h3c-ui-vty0] User Privilege level 2
# Set the VTY0 user interface to support the Telnet protocol.
[h3c-ui-vty0] protocol inbound Telnet
2. Configure the console port password
# Enter system view.
<H3C> System-view
# Enter the Aux user interface view.
[h3c] user-interface aux 0
# Set the user to log in to the switch via the console port for password authentication.
[h3c-ui-aux0] authentication-mode password
# Set the user's authentication password to encrypted mode, password is 123456.
[h3c-ui-aux0] Set authentication password cipher 123456
# Set the command level to be accessed after logging in from the Aux user interface to 2 levels.
[h3c-ui-aux0] User Privilege level 2
3. Configure the Switch VLAN 1 management address
<H3C> System-view
[H3C] interface Vlan-interface 1
[H3c-vlan-interface1] IP address 192.168.100.252 255.255.255.0 is used for remote management of the device via Telnet, if there are three layers of devices or firewalls, A loopback route needs to be configured above.
[H3C] VLAN 100
5, delete vlan
[h3c "Undo VLAN 100
6, add port to VLAN +
[H3C] Interface gigabitethernet 1/0/24
[H3C] port access VLAN +
7. View VLAN
[H3c]display VLAN All
8. View Port Status
[H3c]display Interface Gigabitethernet 1/0/24
9. Enable Port
[H3c]interface gigabitethernet 1/0/24
[H3c]undo shutdown
10. Close the port
[H3c]interface gigabitethernet 1/0/24
[H3c]shutdown
11. View MAC Address List
[H3c]display mac-address
12. View ARP information
[H3c]display ARP
13. View current Configuration
[H3c]display current-configuration
14. View Saved configuration
[H3c]display saved-configuration
Note: The current configuration is stored in the switch memory and will not take effect when the switch is restarted
To be effective when the switch is restarted, it must be saved in the Saved-configureation configuration
This article is from the "david0512" blog, make sure to keep this source http://gjr0512.blog.51cto.com/6518687/1618670
H3C S5120 Switch Common configuration