密码设置:
vty:
username test pass 0 test
authen line vty login local
ssh:
ssh-server enable // 开启ssh
ssh-server timeout 10 //认证超时
ssh-server authentication-retries 2 //认证重试次数
ssh-user test password 0 test //ssh登陆用户
console:
用户密码验证
username test privilege 15 pass 0
test //privilege 15 必须
authen line console login
local
只密码验证:
login
pass 8 test
enable:
RS(config)#enable password 8 lak
无操作超时:
RS(config)#exec-timeout 10
设置clock:
RS#clock set HH:MM:SS Hour:Minute:Second
设置telnet http 访问的安全ip:
RS(config)#authen securityip 125.221.32.142
设置终端显示选项:
RS#terminal length 30 // 一行显示的字数
RS#terminal monitor // 是否显示debug信息
从dhcp获取ip:
1.RS(config-if-vlan1)#ip dhcp-client enable
2.RS(config-if-vlan1)#ip bootp-client enable // 只能用一种方式