创建用户 //用户名admin密码123456
super password level 3 cipher 123456
local-user 123456
password cipher 123456
service-type ssh telnet
level 1
local-user admin
password cipher 123456
service-type ssh telnet
level 3
ssh user admin authentication-type password
ssh user admin service-type stelnet
同时登录5人
[sushe3danyuan]user-interface vty 0 4
设置认证方式
[sushe3danyuan-ui-vty0-4]authentication-mode scheme //同时用用户名和密码
写VLAN
[DTDL-bgl-5floor-9508-A]vlan 103
[DTDL-bgl-5floor-9508-A-vlan103]des sushe3
[DTDL-bgl-5floor-9508-A-vlan103]q
[DTDL-bgl-5floor-9508-A]interface Vlan-interface 103
[DTDL-bgl-5floor-9508-A-Vlan-interface103]ip address 192.168.103.1 255.255.255.0
[DTDL-bgl-5floor-9508-A]int g0/1/18
[DTDL-bgl-5floor-9508-A-GigabitEthernet0/1/18]port link-type access
[DTDL-bgl-5floor-9508-A-GigabitEthernet0/1/18]port access vlan 103
管理路由
[sushe3danyuan]ip route-static 0.0.0.0 0.0.0.0 192.168.103.1
电口数据
[sushe3danyuan]vlan 103
[sushe3danyuan-vlan103]port Ethernet 1/0/1 to Ethernet 1/0/48
光口数据
[sushe3danyuan]vlan 103
[sushe3danyuan-vlan103]port GigabitEthernet 1/1/1
启用生成树
[sushe3danyuan]stp enable //防止环路
[sushe3danyuan]stp bpdu-protection //防止环路
这些都配置好,交换机就可以用了,具体VLAN配置还要根据你的网络实际情况做,希望能帮到你!