思科交换配置命令1.docx

思科交换配置命令1

交换机基本状态:switch: ;ROM状态,路由器是rommonhostname;用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;接口状态交换机口令设置:switchenable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname xxx;设置交换机的主机名switch(config)#enable secret xxx ;设置特权加密口令-----设置进入en特权模式的口令switch(config)#enable password xxa ;设置特权非密口令enable secret 乱码显示enable password 明文显示设置完后用show run可以看出当特权非加密口令和特权加密口令同时设置时,enable secret的级别 高于 enable password ,也即此时 enable password自动失去效用,只有enable secret 起作用,在没有设置secret口令时,非加密口令才有效。switch(config)#line console 0 ;进入控制台口line console 0 可以设置控制台的一些状态,比如在line console 0可以设置exec-timeout和logg

文档评论(0)

1亿VIP精品文档

相关文档