hostname wolf :给路由器改名 configure terminal :进入全局模式 no ip domain-lookup :关闭域名查询 logging synchronous :防止弹出信息干扰输入
exec-time 0 0 或 no exec-time :设置控制台会话永不超时 enable secret password :设置启用加密口令 例:enable secret 12345
Enable password password :设置启用口令(级别比启用口令低) Enable secret level 1~15 password 在switch1900上用 设主控制台口令 Line console 0 Password cisco Login
设辅助控制台口令 Line aux 0 Password cisco Login
设远程登录口令 Line vty 0 4 Password cisco
Login
Service password-encryption 所有口令加密
Show controllers serial 0 :查看接口是DCE还是DTE用这一命令 Show interface interface :查看接口信息 Show ip interface interface :查看接口的协议信 给DCE配时钟: Int s0
Clock rate 1000000
Show cdp neighbors :显示邻居设备 Show cdp neighbors detail :显示邻居细节 No cdp enable :关闭CDP通告
Debug cdp packets No debug cdp packets
No debug all :关闭所有debug进程 Undebug all :关闭所有debug进程
因篇幅问题不能全部显示,请点此查看更多更全内容