sys-进入配置模式
    interface Vlan-interface2—设置一个管理vlan,我设置的vlan2(因为我的交换机有4个vlan)
    
    ip address 172.16.36.20 255.255.255.0–给管理vlan设置一个内网ip和掩码。
   
quit
telnet server enable–开启telnet服务,不开可不写
    local-user admin –设置用户名为admin
    
    password cipher admin –设置密码为admin(设置好记住了,后期显示的时候是加密显示)
    
    authorization-attribute level 15 —-设置权限级别15级(个别型号交换机设置为3级,如果打不开web可以换一下,或者咨询售后)
    
    service-type telnet–开启telnet
    
    service-type terminal–开启terminal
    
    (开启Telnet和terminal权限要继续写,不开不写前两行以及跳过括号内文字
    
    line class aux
    
    user-role network-admin
    
    quit
    
    line class vty
    
    user-role network-operator
    
    quit
    
    line aux 0
    
    user-role network-admin
    
    quit
    
    line vty 0 4
    
    authentication-mode scheme
    
    user-role level-15
    
    quit
    
    line vty 5 63
    
    user-role network-operator
    
    quit
    
    )
    
    service-type http–开启http权限
    
    service-type https–开启https权限
    
    以上两行是
   
quit
    ip http enable–开启http服务
    
    ip https enable–开启http服务
   
    save–保存
    
    y–按y键
    
    —回车
    
    y–按y键
    
    完成保存
   
都写完可键入dis cu命令来查看运行配置。
 
