How to configure Telnet remote login on Cisco switches

Local user authentication login

       If the local user authentication, the need to enable local authentication database, then there is no need to configure the corresponding virtual terminal password authentication, but to configure at least one local user and the user password to login authentication, the specific configuration is as follows:

         C2960#conf t

         C2960(config)#vlan X

         C2960(config-vlan)#exit

         C2960(config)#int vlan X

         C2960(config-if)#ip address 10.100.X.25 255.255.255.0

         C2960(config-if)#no shutdown

         C2960(config-if)#exit

         C2960(config-if)#line vty 0 4

         C2960(config-if)#login local

         C2960(config-if)#exit

         C2960(config)#username admin secret admin

         C2960(config)#enable secret admin

 

1, a brief review of the process of the Cisco switch configuration telnet:

1) connected to the switch through the Console line, enter the command line.

2), configure and manage virtual interface IP for the switch.

         Create a virtual VLAN interfaces for configuring IP (global configuration mode):

         Switch(config)#vlan <vlan-id>

         Enter VLAN interface configuration mode (global configuration mode):

         Switch(config)#interface vlan <vlan-id>      

         Configure the IP address (VLAN interface configuration mode):

         Switch(config-if)#ip address <ip-addr> <mask>

         Activates the current virtual interface (VLAN interface configuration mode):

         Switch(config-if)#no shutdown

3), set the login authentication method:

         Setting the line number and virtual terminal line terminal into the virtual configuration mode (global configuration mode):

         Switch(config)#line vty <0-15>

         No authentication is authentication mode (virtual line terminal configuration mode):

         Switch(config-line)#no login

         Configure the authentication mode as password authentication (virtual terminal line configuration mode):

         Switch(config-line)#login(login tacacs)

         Authentication mode to authenticate local users (virtual line terminal configuration mode):

         Switch(config-line)#login local

         Configuring virtual line login authentication password:

         Switch(config-line)#password <password>

4), create a local user and set permissions and password (global configuration mode, only local authentication required)

         Switch(config)#user <user-name> [privilege <0-15>] password|secret <password>

5), configuration privileged mode password (global configuration mode):

         Switch(config)#enable password|secret <password>

6), configure the default gateway (global configuration mode):

         Switch(config)#ip default-gateway <gateway-ip>

 

 

Source: https://jingyan.baidu.com/article/6181c3e0d7c5aa152ef153bb.html

Reference: https://wenku.baidu.com/view/c2bf0158852458fb770b5687.html

Guess you like

Origin www.cnblogs.com/yizhipanghu/p/11161853.html