設置Telnet密碼:
router(config)# line vty 0 4
router(config-line)# login
router(config-line)# password Set-Password
router(config-line)# ^z
設置特權模式密碼:
router(config)# enable password Set-Password <——不加密的密碼,明碼——>
router(config)# enable secret Set-Password <——經過加密的密碼——>
router(config)# ^z
給所有密碼加密:
router(config)# service password-ancryption Set-Password-Here
router(config)# no service password-ancryption <——取消加密——>
router(config)# ^z
設置登錄Banner:
router(config)# banner motd 分隔符 Set-Banner-InFORMation-Here 分隔符 <——前后分隔符一定要一致——>
設置接口的描述信息:
router(config-if)# description Set-Port-InFORMation-Here
router(config)# ^z
CDP的控制:
router(config-if)# cdp enable <——在指定端口啟用CDP,缺省——>
router(config-if)# no cdp enable <——在指定端口關閉CDP——>
router(config)# cdp run <——使所有端口啟用CDP——>
router(config)# no cdp run <——使所有端口關閉CDP——>
Ping的使用:
router# ping IP-Address
router# ping <——擴展Ping命令——>
Protocol [ip]:[ Protocol-Type ] <——選擇協議類型——>
Target IP address:IP-Address <——輸入測試地址——>
Repeat count [5]: <——選擇發送的ICMP包數量——>
Datagram size [100]: <——選擇每個包的大小——>
Timeout in seconds [2]: <——設置每個包的超時時間——>
Extended commands [n]:y <——使用擴展Ping命令——>
Sweep range of sizes [n]: