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

编程知识 更新时间:2023-05-02 02:50:28

文章目录

  • 实验拓扑图:
  • 实验配置思路:
  • 实验基本配置:
      • SW1——配置VLAN和接口模式
      • SW2——配置VLAN和接口模式
  • 配置AAA认证
      • SW2——配置认证模式为AAA认证
      • SW1——Telnet登录192.168.10.2设备
  • 配置none认证
      • SW2——配置认证模式为none认证
      • SW1——Telnet登录192.168.10.2设备
  • 配置passwrd认证
      • SW2——配置认识模式为password认证
      • SW1——Telnet登录192.168.10.2设备

实验拓扑图:

实验配置思路:

  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配置模式

本文发布于:2023-04-25 08:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/8a6b02ac7c82afa3bba2bad4e14af0c6.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:华为   三种   交换机   模式   Telnet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 102750文章数
  • 26166阅读数
  • 0评论数