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

该实验配置了两台交换机的VLAN和接口模式,创建了VLAN10并配置了IP地址,互联接口设置为Trunk链路,允许所有VLAN通过。接着在SW2上配置了AAA认证,包括none和password认证,通过SW1的Telnet登录验证了不同认证模式的效果。
摘要由CSDN通过智能技术生成

实验拓扑图:

在这里插入图片描述

实验配置思路:

  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>     //登录成功

评论 65
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

正在努力中的杨Sir

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值