1.配置管理VLAN,并将接口加入VLAN [LSW1]vlan 10 [LSW1-vlan10]management-vlan [LSW1-GigabitEthernet0/0/1]port link-type trunk [LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 2.创建VLANIF10,并配置其IP地址 [LSW1]int Vlanif 10 [LSW1-Vlanif10]ip add 10.1.1.2 24 3.启用STelnet服务,并配置SSH用户 [LSW1]rsa local-key-pair create //生成本地密钥对 [LSW1]user-interface vty 0 4 //配置VTY用户 [LSW1-ui-vty0-4]authentication-mode aaa [LSW1-ui-vty0-4]protocol inbound ssh [LSW1]aaa //创建SSH用户 [LSW1-aaa]local-user a1 password cipher abc123 [LSW1-aaa]local-user a1 privilege level 3 [LSW1-aaa]local-user a1 service-type ssh [LSW1]ssh user a1 authentication-type password //认证方式为password [LSW1]stelnet server enable //开启STelnet服务功能 [LSW1]ssh user a1 service-type stelnet //配置服务方式为STelnet 4.PC配置略:需要安装登录SSH服务器的软件以及密钥对生成软件、公钥转换软件