應(yīng)用視點(diǎn):全面詳解路由器設(shè)置基本概念
在向大家介紹路由器設(shè)置的具體方法之前,可能好多人還不了解路由器設(shè)置的,沒有關(guān)系,看完本文你肯定有不少收獲,希望本文能教會你更多東西。下面介紹路由器設(shè)置的一些基本概念:
進(jìn)入路由器設(shè)置有兩種狀態(tài),如下:
nb-r-01> “低級機(jī)密狀態(tài)
nb-r-01# “高級機(jī)密狀態(tài)
nb-r-01>enable
Password: “輸入enable secrect password
nb-r-01#
幫助
在高級機(jī)密狀態(tài)下,就可以對路由器設(shè)置的各種參數(shù)進(jìn)行設(shè)置
在任何時候打入?,可以得到在線幫助
命令簡寫
輸入的命令只要在不引起歧義的情況下,可以簡寫。例如:
nb-r-01>enable 可以輸入為
nb-r-01>en
跟蹤錯誤
如果輸入的命令路由器設(shè)置不認(rèn)識,它會在相應(yīng)的地方標(biāo)出來
進(jìn)入設(shè)置狀態(tài)
在高級機(jī)密狀態(tài)打入configure terminal 進(jìn)入設(shè)置狀態(tài)??梢院唽憺閏onf ter ter
nb-r-01#conf ter ter
Enter configuration commands, one per line. End with CN
nb-r-01(config)#
在設(shè)置狀態(tài),就可以路由器設(shè)置的參數(shù)
存儲退出
設(shè)置完以后,打入exit退出設(shè)置狀態(tài),然后打入write將設(shè)置寫入內(nèi)存
nb-r-01(config)#exit
nb-r-01#write
buliding configure.....
[OK]
nb-r-01#
刪除設(shè)置
如果要將某項設(shè)置去掉,進(jìn)入到相應(yīng)的狀態(tài),打入no 后面跟要去掉的設(shè)置就可以了。 例子:要去掉chat-script cisco-default
nb-r-01#conf ter
nb-r-01(config)#no chat-script cisco-default
nb-r-01(config)#exit
nb-r-01#write
buliding configure.....
[OK]
nb-r-01#
一些常用命令
nb-r-01#show run
nb-r-01#show configure “以上兩項均顯示當(dāng)前設(shè)置
nb-r-01#setup “進(jìn)入setup狀態(tài)
nb-r-01#conf ter “進(jìn)入configure狀態(tài)
修改地址
地址分為以太網(wǎng)口地址(ethernet),廣域網(wǎng)口地址(serial),異步口地址(async).
ethernet
拿console線將路由器的console口與微機(jī)的COM口相連,啟動“終端仿真程序”,將通信參數(shù)設(shè)置為
波特率:9600
數(shù)據(jù)位:8
停止位:2
奇偶校驗:無
流控制:硬件
show interfaces serial Command
顯示指定端口的狀態(tài)
Extended ping Tests
測試兩點(diǎn)間線路狀態(tài)
路由器設(shè)置傳輸故障排除方法
Serial x is up, line protocol is up
Serial x is down, line protocol is down
Serial x is up, line protocol is down
Serial x is up, line protocol is up (looped)
Serial x is administratively down, line protocol is down