In the previous post, we have discussed the basics of VLANs and how to configure VLANs. If you missed that one, we would highly recommend you to visit “Configure VLANs” post before start to configure VLAN trunking. VLAN trunking enables to carry VLAN traffic from one switch to another switch using the trunk port. A trunk port is simply a switch port that is used to interconnect switches. In order to forward VLAN traffic from one switch to another switch, [Read more…]
VLANs are used to segment a large physical LAN into multiple small virtual LANs for better management and greater security. VLANs provide a number advantages and features. In this post, we will explain the key features provides by VLANs and how to configure VLANs on cisco switches. Some of the key features provided by VLANs are: [Read more…]
A device can be managed either locally or remotely. There are various protocols, tools, and services (such as Telnet, Secure Shell, and Putty) that are used to manage devices remotely. These tools are also referred as remote administration tools. Similar to Cisco routers, a Cisco switch can also be managed using the remote administrator tool. In this post, we will explain how to configure Telnet on a Cisco router or switch.
Configuring Telnet on a Cisco router or switch is pretty simple. It requires just a few commands and your device, whether it is a router or switch, will be ready to access from a remote location. We will use the following simple topology to configure Telnet.
Steps to Configure Telnet on Cisco Router or Switch
- First of all, execute the following command to change the current hostname as Switch1.
- Next, configure an IP address on the switch. Unlike the routers, typically switch does not require to be configured with an IP address. However, we need to configure an IP address on the switch’s VLAN 1 interface. The following commands will configure 10.0.0.100/8 IP address on the VLAN 1 interface.
Switch1(config)#interface vlan 1 Switch1(config-if)#ip address 10.0.0.100 255.0.0.0 Switch1(config-if)#no shutdown Switch1(config-if)#exit
- Once you have configured the appropriate hostname and IP address on the switch, execute the following commands to enable the Telnet protocol.
Switch1(config)#line vty 0 4 Switch1(config-line)#password 123456 Switch1(config-line)#login Switch1(config-line)#exit
- The following figure shows the Telnet configuration on Switch1.
- In the preceding commands, vty −means virtual terminal and 0 4 means ─total five (0 to 4) users can access the switch remotely at a time. 123456 is the password that the remote users need to know in order to connect to the switch.
- Once you have done your configuration on switch1, move on to PC0. Configure 10.0.0.1/8 IP address on PC0.
- After configuring the appropriate IP address on the PC, open the Command Prompt window of the PC, type telnet 10.0.0.100 and press Enter.
- At the Password: prompt, type your telnet password (123456) and verify that you are able to connect to switch’s console remotely.
- In the preceding figure, you can see that you are successfully connected to the switch’s console remotely. At the Switch1> prompt (User EXEC mode), you can execute all the commands that you can use locally.
In this post, we have learned how to configure Telnet on a Cisco router or switch. We would love to hear you and your valuable suggestions to improve the article. Please also share the article to others, it will not cost you anything.