一、实验拓扑图

图标变绿色,即为设备启动了

二、配置路由器 MSR36-20_1
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]interface g 0/0
[R1-GigabitEthernet0/0]ip address 192.168.101.100 24
[R1-GigabitEthernet0/0]quit
[R1]user-interface console 0 【进入终端接口】
[R1-line-console0]authentication-mode scheme 【认证模式为计划】
(scheme创建用户名和密码)(认证模式有三种,第一种:无密码,第二种:有密码,第三种:scheme,需要输入用户和密码,scheme更安全6)
[R1-line-console0]quit
[R1]local-
[R1]local-user admin class manage 【创建本地用户admin,级别是经理】
New local user added.
[R1-luser-manage-admin]password simple abcedfg123456 【设置简单密码为 abcedfg123456】
[R1-luser-manage-admin]service-type terminal 【服务类型为终端】
[R1-luser-manage-admin]authorization-attribute user-role level-15 【认证属性的用户角色级别为15】(15是最高级别)
[R1-luser-manage-admin]quit
<R1>system-view
System View: return to User View with Ctrl+Z.
[R1]user-interface vty 0 4 【进入远程登录接口,允许五个虚拟用户登录0-4】
[R1-line-vty0-4]authentication-mode scheme 【认证模式为计划】
[R1-line-vty0-4]user-role network-operator 【用户角色为网络操作员】
[R1-line-vty0-4]protocol inbound telnet 【输入协议为远程访问】
[R1-line-vty0-4]quit
[R1]local-user admin1 【创建本地用户为admin1】
New local user added.
[R1-luser-manage-admin1]authorization-attribute user-role network-operator 【认证属性的用户角色为网络操作员】
[R1-luser-manage-admin1]password simple h3c@123
The new password is too short. It must contain at least 10 characters. (最低需要十位)
[R1-luser-manage-admin1]password simple h3c@123.com.cn 【设置简单密码为h3c@123.com.cn】
[R1-luser-manage-admin1]service-type telnet 【服务类型为远程访问】
[R1-luser-manage-admin1]quit
[R1]telnet server enable 【开启远程访问服务】
三、配置交换机 S6850_2
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]sysname SW1
[SW1]interface vlan-interface 1
[SW1-Vlan-interface1]%May 9 14:41:28:011 2025 SW1 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface1 changed to up.
%May 9 14:41:28:012 2025 SW1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface1 changed to up.
[SW1-Vlan-interface1]ip address 192.168.101.102 24
[SW1-Vlan-interface1]quit
[SW1]user-interface vty 0 4
[SW1-line-vty0-4]authentication-mode scheme
[SW1-line-vty0-4]user-role network-operator
[SW1-line-vty0-4]quit
[SW1]local-user admin1
New local user added.
[SW1-luser-manage-admin1]authorization-attribute user-role network-operator
[SW1-luser-manage-admin1]password simple h3c@123.com.cn
[SW1-luser-manage-admin1]%May 9 14:43:18:988 2025 SW1 LS/5/LS_PWD_CHGPWD: The password of local device-management user admin1 was modified.
[SW1-luser-manage-admin1]service-type telnet
[SW1-luser-manage-admin1]quit
[SW1]telnet server enable
Telnet is insecure because it transmits data in plaintext form.
四、查看本机telnet客户端是否安装

五、ping交换机SW1

