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: 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: b. A password (or a combination of username and password if Option 2 from above is configured) is required before accessing the switch CLI: c. Password is also required to enter privileged mode: d. Type 'show users' to view the users currently accessing the CLI: In the example above, there is 1 console connection and 1 Telnet connection accessing the switch CLI from IP address 192.168.1.2 |
This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.
More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.
©2000-2023 Ruijie Networks Co,Ltd