ensp (Huawei emulator) telnet remote login

[My understanding is still shallow, please point out if I am wrong]

Purpose: To configure Telnet on the router AR1, so that the switch LSW1 can remotely log in to the router for operation.

IP address:

AR1:G0/0/1:192.168.1.1/24

LSW1:G0/0/2(vlan 1)192.168.1.2/24

LSW1 configuration:

<Huawei>sys \\Enter system view mode

[Huawei]sysname LSW1 \\Named as LSW1

[LSW1]interface Vlanif 1 \\The default has vlan1 to enter vlan1

[LSW1-Vlanif1]ip address 192.168.1.2 24 \\configure ip address

[LSW1]int G0/0/2 \\ Enter G0/0/2

[LSW1-GigabitEthernet0/0/2]port link access

//The command is used to configure the link type of the interface. Set access port mode

[LSW1-GigabitEthernet0/0/2]port default vlan 1

//Tag vlan 1

[LSW1-aaa] \\Enter aaa configuration view

[LSW1-aaa]local-user huawei password cipher 123

\\ Create a local user huawei user password 123

[LSW1-aaa]Local-User Huawei Privilege Level 15     

 \\Give the user permission level 15 the highest

[LSW1-aaa]local-user huawei service-type telnet 

\\Create huawei for telnet service

[LSW1]user-interface vty 0 4 \\Enter vty0-4 user interface view

[LSW1-ui-vty0-4]authentication-mode aaa

\\ Configure the authentication method of the vty type user interface aaa

AR1 configuration:

<Huawei>SYS\\Enter system view mode

[Huawei]sysname AR1 \\ named AR1

[AR1]telnet server enable \\Open telnet service (usually enabled by default)

[AR1]user-interface vty 0 4 \\user-specified virtual user terminal interface 5 users

[AR1-ui-vty0-4]authentication-mode password 

\\Configure user terminal interface authentication mode password verification Enter password 123

Please configure the login password (maximum length 16):123

[AR1-ui-vty0-4]user privilege level 15

\\Level highest level 15

[AR1-ui-vty0-4]quit \\exit

AR1-ui-vty0-4]int G0/0/1 \\ enter G0/0/1

[AR1-GigabitEthernet0/0/1]ip address 192.168.1 24 \\location ip

AR1-GigabitEthernet0/0/1]quit \\exit
[AR1]user-interface vty 0 4 enter vty0 4 

[AR1-ui-vty0-4]authentication-mode password 

\\Configure the user terminal interface authentication method password verification press Enter to enter the password 123
Please configure the login password (maximum length 16):123

[AR1-ui-vty0-4]user privilege level 15 \\The highest level 15

[AR1-ui-vty0-4]quit \\exit

Acceptance Results

Router AR1 remote login switch LSW1: the result can log in

The switch LSW1 remotely logs in to the router AR1: the result can be logged in 

Guess you like

Origin blog.csdn.net/h20040928/article/details/127520594