一、开启网页登录
1.给交换机配置ip管理地址。
2.开启http功能,并创建用户密码和权限等
[SW1]ip http enable
[SW1]ip https enable
创建用户和密码
[SW1]local-user user //新建用户user
[SW1-luser-manage-user]password simple user123 //创建用户密码user123(也可用来修改之前密码)
[SW1-luser-manage-user]authorization-attribute user-role network-admin //用户级别为network-admin管理员级别
[SW1-luser-manage-user]service-type http https //服务类型为http和https
二、开启telent
#
line vty 0 4
authentication-mode scheme
user-role network-operator
#
local-user admin class manage
password simple 123456
service-type telnet
authorization-attribute user-role level-15
authorization-attribute user-role network-operator