华为交换机三种Telnet配置模式

Posted 正在努力中的杨Sir

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为交换机三种Telnet配置模式相关的知识,希望对你有一定的参考价值。

实验拓扑图:

实验配置思路:

  1. 给VLAN配置IP地址
  2. 配置互联接口为trunk链路,允许所有VLAN通过
  3. 配置Telent远程登录AAA认证
  4. 配置Telent远程登录none认证
  5. 配置Telent远程登录password认证

实验基本配置:

SW1——配置VLAN和接口模式

[SW1]vlan 10     //创建VLAN 10
[SW1-vlan10]quit     //退出
[SW1]int vlan10     //进入VLAN 10
[SW1-Vlanif10]ip address 192.168.10.1 24     //配置IP地址
[SW1-Vlanif10]quit     //退出
[SW1]int g0/0/1     //进入接口
[SW1-GigabitEthernet0/0/1]port link-type trunk     //配置接口为trunk链路  
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all     //允许所有VLAN通过 
[SW1-GigabitEthernet0/0/1]quit     //退出
[SW1]

SW2——配置VLAN和接口模式

[SW2]vlan 10     //创建VLAN 10
[SW2-vlan10]quit     //退出
[SW2]int vlan10     //进入VLAN 10
[SW2-Vlanif10]ip address 192.168.10.2 24     //配置IP地址
[SW2-Vlanif10]quit     //退出
[SW2]int g0/0/1     //进入接口
[SW2-GigabitEthernet0/0/1]port link-type trunk     //配置接口为trunk链路   
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all     //允许所有VLAN通过  
[SW2-GigabitEthernet0/0/1]quit     //退出
[SW2]

配置AAA认证

SW2——配置认证模式为AAA认证

[SW2]user-interface vty 0 4     //用户指定虚拟用户终端接口
[SW2-ui-vty0-4]authentication-mode aaa     //配置认证模式AAA
[SW2-ui-vty0-4]quit     //退出
[SW2]aaa     //配置AAA
[SW2-aaa]local-user admin password cipher admin     //配置用户名和密码	
[SW2-aaa]local-user admin privilege level 3     //配置用户等级
[SW2-aaa]local-user admin service-type telnet     //配置用户服务类型 
[SW2-aaa]quit     //退出
[SW2]

SW1——Telnet登录192.168.10.2设备

<SW1>telnet 192.168.10.2     //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...


Login authentication


Username:admin     //输入用户名
Password:     //输入密码
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2021-05-24 19:44:54.
<SW2>     //登录成功

配置none认证

SW2——配置认证模式为none认证

[SW2]user-interface vty 0 4     //用户指定虚拟用户终端接口	
[SW2-ui-vty0-4]authentication-mode none     //配置认证模式为none 
[SW2-ui-vty0-4]user privilege level 3     //配置用户等级
[SW2-ui-vty0-4]quit     //退出
[SW2]

SW1——Telnet登录192.168.10.2设备

<SW1>telnet 192.168.10.2     //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...

Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2021-05-24 20:53:28.
<SW2>     //登录成功

配置passwrd认证

SW2——配置认识模式为password认证

[SW2]user-interface vty 0 4     //用户指定虚拟用户终端接口
[SW2-ui-vty0-4]authentication-mode password     //配置用户认证模式为password 	
[SW2-ui-vty0-4]set authentication password ?
  cipher  Set the password with cipher text     //使用密文设置密码
  simple  Set the password in plain text    //以明文方式设置密码
[SW2-ui-vty0-4]set authentication password cipher admin     //配置密码
[SW2-ui-vty0-4]user privilege level 3     //配置用户等级
[SW2-ui-vty0-4]quit     //退出
[SW2]

SW1——Telnet登录192.168.10.2设备

<SW1>telnet 192.168.10.2     //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...


Login authentication


Password:     输入密码
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2021-05-24 21:16:12.
<SW2>     //登录成功

以上是关于华为交换机三种Telnet配置模式的主要内容,如果未能解决你的问题,请参考以下文章

华为交换机telnet配置

华为交换机怎么配置Telnet远程

华为交换机修改telnet密码怎么弄

华为交换机配置telnet登录设备

华为交换机telnet 配置方法

华为S5700交换机开启telnet远程登陆配置