Some configurations of vswitches and vrouters can be controlled through telnet. In some management and configuration of H3C telnet, we need to pay attention to a lot of points. Now we will introduce in detail some of the details and command code. We hope that the introduction in this article will help you understand this part.
Enable H3C telnet Management
How to enable the WEB management function of S2008?
Configure the IP address to go to management through the network. The command is as follows:
- Sys (in System Mode)
- Int vlan1 (entering Virtual Interface vlan1)
- Ip add 192.168.1.100 255.255.255.255.0 (configure ip address)
After the network cable is connected, ping the address.
Configure the user name and password
1. Go to the user interface View
- [SwitchA]user-interface vty 0 4
2. Use the authentication-mode scheme command to perform local or remote user name and password authentication.
- [SwitchA-ui-vty0-4]authentication-mode scheme
3. Set the local user name and password
- [SwitchA]local-user Huawei
- [SwitchA-user-huawei]service-typetelnetlevel 3
- [SwitchA-user-huawei]password simple Huawei
In this case, you can use the user name and password configured above to access switch management.
Switch H3C telnet configuration to log on.
First, log on to the Console Port AUX user interface, and then:
Configure the IP address of the Ethernet switch VLAN1
- <H3C> system-view
- [H3C] interface Vlan-interface 1
- [H3C-Vlan-interface1] ip address 10.10.3.254 255.255.0.0
-
- # Create a local user guest and enter the local user view.
- [H3C] local-user guest
-
- # Configure the local user's authentication password to display (plaintext/ciphertext) and the password to 123456.
- [H3C-luser-guest] password simple | cipher 123456
-
- # Set the service type of the local user to telnet and the command level to 2.
- [H3C-luser-guest] service-typetelnetlevel 2
- [H3C-luser-guest] quit
-
- # Go To The VTY0 User Interface view.
- [H3C] user-interface vty 0
-
- # Configure to log on to the telnet user of the vswitch through the VTY0 user interface for Scheme authentication.
- [H3C-ui-vty0] authentication-mode scheme
-
- # Configure the VTY0 user interface to support the telnet protocol.
- The [H3C-ui-vty0] protocol inbound telnet
-
- # Configure VTY0 to display 30 lines of commands on one screen on the terminal screen.
- [H3C-ui-vty0] screen-length 30
-
- # Configure the VTY0 user interface's history command buffer to store 20 commands.
- [H3C-ui-vty0] history-command max-size 20
-
- # Set the timeout value of VTY0 to 6 minutes.
- [H3C-ui-vty0] idle-timeout 6
After the preceding configuration, you can use the H3C telnet10.10.3.254 connection to log on.