This is the ninth day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021

Remote login configuration

1. PC — Telenet Remote control switch:

Switch (config)# interface VLAN 1 // Enter the virtual interface. (The switch is a Layer 2 device and can only recognize MAC addresses. Therefore, the switch cannot directly enter the interface for IP address allocation, but needs to enter the virtual interface for IP address allocation. Switch (config-if)# IP address 192.168.1.1 255.255.255.0 // Configure IP switch(config-if)#no sh Telnet switch(config)#line vty 0 4 Switch (config-line)#password 123456 // Set remote login password switch(config-if)#exit step 3: Enter the password of the privileged mode (en) Switch (config)#enable secret 987654 //secret Step 4: Telnet 192.168.1.1 on PC Switch (config)# IP default-gateway 192.168.2.254 when PCS remotely control switches on different network segments, configure gateways for switches on different network segments. Switch (config-line)#no IP domin lookup // Disable domain name lookupCopy the code

2. Configure security for the console port –> local security

Switch (config)#line console 0 switch(config-line)#exec-timeout 0 0 0 0: never timeout (experimental only) switch(config-line)#password console // Set the console login password switch(config-line)#logging synchronous Switch (config)#login // Enable switch(config)#no IP domain-lookup // Disable domain name lookupCopy the code

3. Pc-telnet remotely controls the router

Step 1: Configure an IP address for the router interface. The router interface is a Layer 3 interface and can be directly configured with an IP address. Router(config)#int f0/0 Router(config-if)# IP add 192.168.1.254 255.255.255.0 Router(config-if)#no sh Router(config)#int F0/1 Router(config)# IP add 192.168.2.254 255.255.255.0 Router(config-if)#no sh step 2: Router(config)#line vty 0 4 Router(config-line)#password 123456 Router(config-line)#exit Router(config-line)#exit Router(config)#enable password 123456 Router(config-if)#do show IP routeCopy the code

summary

If this article helps you, remember the triple concave ~