cisco中交换机的console密码,特权模式密码,vty密码设置
在交换机的CLI里:
- 更改设备名
Switch>enable
Switch#conf t //configure terminald的简写
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#
- 各个密码
conf t
interface vlan 1
ip address 192.168.1.XX 255.255.255.0 //设置IP和子网掩码
no shutdown
exit
exit
S1# show running-config//或show ip interface brief //检查ip地址和状态
conf t
line console 0
password XXX//设置控制台密码
login//表示启用
exit
exit
enable
conf t
line vty 0 4
password XXXX//设置vty密码
exit
enable
conf t
enable password XXX//设置特权模式密码EXEC
exit
show running-config
conf t
enable secret XOOOOX//设置使能加密密码 比enable password 优先级高
exit
show running-config
conf t
service password-encryption//加密密码
exit
show run//show running-config的简写 加密之后这里将不以明文显示密码内容
加密后show的内容: