通过Console口本地认证方式登录设备
line aux 0
authentication-mode password
set authentication password simple
user-role network-admin
SCHEME认证方式
line aux 0
authentication-mode scheme
local-user admin class manage
password hash
service-type terminal
authorization-attribute user-role network-admin
配置telnet
telnet server enable
line vty 0 63
authentication-mode scheme
local-user admin
password hash
service-type telnet
authorization-attribute user-role network-admin
配置HTTP
ip http enable
ip https enable
local-user admin
password hash
service-type http https
authorization-attribute user-role network-admin
配置SSH
stelnet server enable
user-interface vty 0 4
protocol inbound all
authe sch
local-user admin class mana
password hash
service-type telnet ssh http https terminal
autho user-role network-admin
q
配置DHCP服务器
dhcp enable
dhcp server ip-pool 5
network 192.168.5.0 mask 255.255.255.0
dns-list 192.168.5.100
gateway-list 192.168.5.254
quit
interface vlan-interface 5
dhcp select server
quit
dhcp server forbidden-ip 192.168.5.100 不参与分配