1. clear port
清除接口統(tǒng)計(jì)信息。 
clear port [ interface-type interface-number  interface-name ] 
【參數(shù)說明】 
interface-type指接口類型,如Ethernet、Serial和Bri等。 
interface-number指接口編號(hào)。 
interface-name為接口名,為一字符串,內(nèi)容為接口類型+接口編號(hào)。 
【缺省情況】 
假如不指定相應(yīng)接口,則清除全部接口的統(tǒng)計(jì)信息。 
【命令模式】 
特權(quán)用戶模式 
【使用指南】 
在某些情況下,需要統(tǒng)計(jì)一定時(shí)間內(nèi)某接口的流量統(tǒng)計(jì),這時(shí)必須在統(tǒng)計(jì)開始前清除該接口原有的統(tǒng)計(jì)信息,使接口重新進(jìn)行統(tǒng)計(jì)。 
【舉例】 
清除接口Serial0的統(tǒng)計(jì)信息。 
Quidway#clear port serial0 
【相關(guān)命令】 
show interface 
2. shutdown
關(guān)閉或重新啟動(dòng)物理接口。 
[ no ] shutdown 
【缺省情況】 
在路由器上電時(shí),初始化并啟動(dòng)各物理接口。 
【命令模式】 
接口配置模式 
【使用指南】 
慎重使用關(guān)閉和重啟接口命令,但在某些非凡情況下,如修改接口的工作參數(shù)時(shí),不能立即生效,需要關(guān)閉和重啟接口后,才能生效。 
【舉例】 
關(guān)閉接口Serial0。 
Quidway(config-if-Serial0)#shutdown 
%Serial0 is shutdown 
%Interface Serial0 changed state to DOWN 
%Line PRotocol ip on interface Serial0 changed state to DOWN 
【相關(guān)命令】 
show interface 
3. show interface
顯示接口當(dāng)前運(yùn)行狀態(tài)和接口統(tǒng)計(jì)信息。 
show interface { interface-type interface-number  interface-name } 
【參數(shù)說明】 
interface-type指接口類型,如Ethernet、Serial和Bri等。 
interface-number指接口編號(hào)。 
interface-name為接口名,為一字符串,內(nèi)容為接口類型+接口編號(hào)。 
【命令模式】 
特權(quán)用戶模式 
【使用指南】 
show interface命令顯示信息包括: 
接口的物? 態(tài)和協(xié)議狀態(tài) 
接口物理特性(同異步、DTE/DCE、時(shí)鐘選擇,外接電纜等) 
接口IP地址 
接口封裝的鏈路層協(xié)議以及鏈路層協(xié)議運(yùn)行狀態(tài)和統(tǒng)計(jì)信息等 
接口的輸入輸出報(bào)文統(tǒng)計(jì)信息 
用戶可以根據(jù)這些信息進(jìn)行流量統(tǒng)計(jì)和接口的故障診斷等。 
【舉例】 
查看接口Serial0(封裝PPP協(xié)議)的運(yùn)行狀態(tài)和統(tǒng)計(jì)信息。 
#show interface serial 0 
Serial0 is up, line protocol is up 
physical layer is synchronous 
interface is DTE, clock is DTECLK1, cable type is V35 
Internet address is 10.3.0.158 255.255.255.252 
Encapsulation is PPP 
LCP opened, IPCP opened, IPXCP disabled 
Output queue 30/0, 33081 drops; Input queue 30/1, 0 drops. 
5 minutes input rate 1288.14 bytes/sec, 4.97 packets/sec 
5 minutes output rate 3077.11 bytes/sec, 4.94 packets/sec 
997074 packets input, 485012871 bytes, 0 no buffers 
1825361 packets output, 542976191 bytes, 0 no buffers 
1171945 input errors, 437713 CRC, 504161 frame errors 
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注