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


