How to configure Telnet management for Ruijie Switches in CLI?
1. Application Scenario & Requirement:After enabling Telnet on the switch, a host can remotely access the CLI of the switch for device management.
2. Network Topology:
data/attachment/forum/202308/15/105935yicie1iwuu2yi0zt.png
3. Configuration Key Points:
a. The switch requires a management IP address. If the PC and the switch are not in the same network segment, you need to configure a default gateway for the switch.
b. You need to configure an 'enable' password and a telnet password.
4. Configuration Steps:
a. Access switch CLI using a console connection and configure the management IP address:
Ruijie>enable ------> enter privileged mode (no 'enable' password by default)
Ruijie#configure terminal ------> enter global configuration mode
Ruijie(config)#interface vlan 1 ------> enter interface configuration mode of VLAN 1
Ruijie(config-if)#ip address 192.168.1.1 255.255.255.0 ------> set the management IP address for VLAN 1
Ruijie(config-if)#exit
b. Enable Telnet on the switch:
Option 1. Using password only when accessing switch CLI through Telnet:
Ruijie#config ter
Ruijie(config)#enable service telnet-server
Ruijie(config)#line vty 0 4 ------> enter vty configuration mode, 0 4 means that a total of 5 users are allowed to log in to the switch through telnet at the same time
Ruijie(config-line)#login ------> enable password protection of the line
Ruijie(config-line)#password ruijie ------> set Telnet password as 'ruijie'
Ruijie(config-line)#exit
Ruijie(config)#enable password ruijie ------> set the password to enter privilege mode as 'ruijie'
Ruijie(config)#end
Ruijie#write
Option 2. Using username and password when accessing switch CLI through Telnet
Ruijie(config)#line vty 0 4
Ruijie(config-line)#login local ------> Use local password and password for Telnet connection
Ruijie(config-line)#exit
Ruijie(config)#username admin password ruijie ------> configure the remote management username as 'admin' and password as 'ruijie'
Ruijie(config)#enable password ruijie
Ruijie(config)#end
Ruijie#write
5. Verification:
a. Enter 'telnet 192.168.1.1' on Windows Command Prompt:
data/attachment/forum/202308/15/105950g960z68hhrx0rn00.png
b. A password (or a combination of username and password if Option 2 from above is configured) is required before accessing the switch CLI:
data/attachment/forum/202308/15/105956iev9nrooovw0ovpg.png
c. Password is also required to enter privileged mode:
data/attachment/forum/202308/15/110001mpyjdbjseoeoecjz.png
d. Type 'show users' to view the users currently accessing the CLI:
data/attachment/forum/202308/15/110006inrftkwhcwlhxtnr.png
In the example above, there is 1 console connection and 1 Telnet connection accessing the switch CLI from IP address 192.168.1.2
Pages:
[1]