赞
踩
实验环境:Windows11、H3C Cloud Lab5.7
实验topo:
(1)SW1和SW2重命名
SW1:
<H3C>sys
[H3C]SYSN SW1
SW2:
<H3C>sys
[H3C]sysn SW2
(2)给SW1和SW2创建vlan10,并分别配置192.168.10.1/24和192.168.10.2/24
2.1)
SW1:
[SW1]vlan 10 //创建vlan10
[SW1-vlan10]qui //退出
SW:2
[SW2]vlan 10
[SW2-vlan10]qui
2.2)
SW1:
[SW1]int vlan 10 //进入vlan10
[SW1-Vlan-interface10]ip add 192.168.10.1 24//配置ip、子网掩码
[SW1-Vlan-interface10]qui//退出
SW2:
[SW2]int vlan 10
[SW2-Vlan-interface10]ip add 192.168.10.2 24
(3)设置trunk模式
3.1)
[SW1]int g1/0/1 //进入g1/0/1接口
[SW1-GigabitEthernet1/0/1]port link-type tr //设置trunk模式
[SW1-GigabitEthernet1/0/1]po tr per vl 10 //在g1/0/1这个接口下允许vlan10通过
[SW1-GigabitEthernet1/0/1]dis this//查看当前配置
3.2)
[SW2-Vlan-interface10]int g1/0/1
[SW2-GigabitEthernet1/0/1]port link-type tr
[SW2-GigabitEthernet1/0/1]po tr pe vl 10
[SW2-GigabitEthernet1/0/1]dis this //查看当前配置
(4)配置telnet服务
SW1:
[SW1-GigabitEthernet1/0/1]qui //退出接口模式
[SW1]telnet server enable //开启telnet服务
[SW1]user-interface vty 0 4 //设置登陆的用户数量
[SW1-line-vty0-4]authentication-mode scheme //登陆方式为scheme
[SW1-line-vty0-4]user-role level-15 //设置用户权限为最高权限15
[SW1-line-vty0-4]dis this//查看当前配置,我一般是直接刷到SW2上面
SW2:
[SW2-GigabitEthernet1/0/1]qui
[SW2]telnet server enable
[SW2]user-interface vty 0 4
[SW2-line-vty0-4]authentication-mode scheme
[SW2-line-vty0-4] user-role level-15
[SW2-line-vty0-4]dis this//查看当前配置,看看是否和SW1配置相同
(5)创建新用户admin和zhangjianbin,密码统一设置为666888.com
5.1)
SW1:
[SW1-line-vty0-4]qui //退出telnet服务配置
[SW1]local-user admin class manage //创建admin用户
[SW1-luser-manage-admin]password simple 666888.com //设置密码为明文密码666888.com
[SW1-luser-manage-admin]authorization-attribute user-role level-15//认证权限使用最高权限
[SW1-luser-manage-admin]service-type telnet //服务类型为telnet
5.2)
SW2:
[SW2]local-user zhangjianbin class manage
[SW2-luser-manage-zhangjianbin]password simple 666888.com
[SW2-luser-manage-zhangjianbin]authorization-attribute user-role level-15
[SW2-luser-manage-zhangjianbin]service-type telnet
(6)配置两台终端测试telnet服务
6.1)
[SW1]int g1/0/2
[SW1-GigabitEthernet1/0/2]port link-type access
[SW1-GigabitEthernet1/0/2]port access vlan 10
[SW1-GigabitEthernet1/0/2]dis this
6.2)
[SW2]int g1/0/2
[SW2-GigabitEthernet1/0/2] port link-mode bridge
[SW2-GigabitEthernet1/0/2] port access vlan 10
[SW2-GigabitEthernet1/0/2]dis this
(7)测试telnet服务
7.0)使用三层交换机测试
7.1)PC1
7.2)PC2
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。