常用基本操作命令
hostname shuiyong :给路由器改名
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 授权1-15级口令,15为最高级
设主控制台口令
Line console 0
Password cisco
Login
设辅助控制台口令
Line aux 0
Password cisco
Login
设远程登录口令
Line vty 0 4
privilege level 15 设定等级15,可以在telnet时直接进入enable模式
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进程
转载于:https://blog.51cto.com/huangshuiyong/1136962