Packet Tracer configuration switch remote login

First, let's place a computer and a switch in the workspace and connect them:
insert image description here

Then set the IP address for the computer. The IP address I set here is192.168.31.1, the subnet mask software will automatically fill in:
insert image description here

Then we enter the switch configuration interface, open the switch management port and configure the IP address, and then set the login password and privileged password.

Here we first click the switch, then click the command line and press Enter to enter the normal user mode:
insert image description here

then typeenablePress Enter to enter privileged mode:
insert image description here

re-enterconfig terminalPress Enter to enter the global configuration mode:
insert image description here

After entering the global mode, we first change the name of the switch, enterhostname xiaoxing(xiaoxing is the name we want to change, just enter whatever you want to change) and press Enter:
insert image description here

The name of our switch has been changed, and then we enter the management port of the switch. Because the default management port of our switch is vlan 1, we enterinterface vlan 1Press Enter to enter the management port
insert image description here

After entering the port, we will set the IP address. The IP address I set here is192.168.31.10, then the subnet mask is 255.255.255.0. So we typeip address 192.168.31.10 255.255.255.0Enter after:
insert image description here

Here we have set the IP address, now we will open the port. enterno shutdownEnter after:
insert image description here

We have set up the port, now let's set the privileged mode password. We first exit from interface mode and return to global mode. enterexitEnter after:
insert image description here

Then the password I set here is5201314, so enterenable secret 5201314Enter after:
insert image description here

After the privileged mode password is set, now let’s configure the parameters for the VTY line. I set it to allow 6 users to implement Telnet remote login on the VTY line 0~5 at the same time. Enterline vty 0 5Enter after:
insert image description here

Now we enter the thread mode, and then we set the login password in the thread mode, I set it here as1314520,enterpassword 1314520Enter after:
insert image description here

The password is set, now we make the password effective. enterloginEnter after:
insert image description here

Now all the settings of the switch have been set up, we can now achieve remote login on the computer, click on the computer and then click on the desktop to enter the command prompt:
insert image description here

entertelnet 192.168.31.10For remote login, the IP address here is the IP address of the switch management port I set before. Then you will be asked to enter the password, the password will not be displayed (just press Enter), I made a mistake for the first time here, so I have entered the login password twice here (the login password is in The password set in the thread). Then I entered the privileged mode here, and I also entered the password, because I just set the password, and finally I entered the global configuration mode. Now configuring the switch here has the same effect as configuring in the switch.
insert image description here

This is the whole process of realizing the remote login of the switch, we will see you soon! ! !

Guess you like

Origin blog.csdn.net/weixin_43635067/article/details/128080953