|
router-client(config-if)# ^z CHAP雙向認(rèn)證配置實(shí)例:
路由器 A:
routerA(config)# username routerB password 12345
routerA(config)# interface serial 0
routerA(config-if)# encapsulation ppp
routerA(config-if)# ppp authentication chap
routerA(config-if)# ppp chap hostname routerA
routerA(config-if)# ppp chap password 54321
routerA(config-if)# ^z
路由器 B:
routerB(config)# username routerA password 54321
routerB(config)# interface serial 1
routerB(config-if)# encapsulation ppp
routerB(config-if)# ppp authentication chap
routerB(config-if)# ppp chap hostname routerB
routerB(config-if)# ppp chap password 12345
routerB(config-if)# ^z
Telnet使用:
routerA# terminal monitor <——可以傳回在遠(yuǎn)端主機(jī)執(zhí)行Debug命令的結(jié)果——>
routerA# telnet IP-Address [ Router-Name ] <——Telnet到指定的地址或名字的主機(jī)——>
routerB# [ exit logout ] <——退出Telnet——>
routerB# ++<6>再按 <——掛起Telnet——>
routerA# show sessions <——顯示當(dāng)前所有Telnet的信息,包括Connect-Number ——>
routerA# Connect-Number <——返回指定的Telnet連接——>
routerA# disconnect IP-Address [ Router-Name ] <——斷開指定地址或名字的主機(jī)的連接——>
routerA# show user <——顯示Telnet到本機(jī)的連接信息——>
routerA# clear line [ 0 1 2 3 4 ] <——斷開指定Telnet到本機(jī)的連接——>
禁止任何Telnet到本機(jī):
router(config)# line vty 0 4
router(config-line)# access-class ACL-Number
router(config)# ^z
設(shè)置主機(jī)名:
router(config)# hostname Set-Hostname
router(config)# ^z
router(config)# ^z
設(shè)置用戶模式密碼:
router(config)# line console 0
router(config-line)# login
router(config-line)# password Set-Password
router(config-line)# ^z
設(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)過(guò)加密的密碼——>
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——> 本新聞共 5頁(yè),當(dāng)前在第 3頁(yè) 1 2 3 4 5 |
|
【收藏】【打印】【進(jìn)入論壇】 |
|
|
|
|
|
|
|