萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 電腦基礎知識 >  >> 電腦入門

路由器介面狀態查看與常見 WAN 介面配置實戰

核心指令速查

  • show interfaces:完整統計
  • show interfaces <id>:單介面詳情
  • show ip interface brief:一覽表(推薦日常巡檢)
  • show ip interface <id>:IP 參數詳情

隱藏神器:show interfaces <id> stats 可區分 Process Switching、Fast Switching、CEF 的封包計數。

預設負載統計間隔 5 分鐘,可用 load-interval 60 改為 60 秒(必須為 30 倍數,最長 10 分鐘)。

16.2 串列介面配置(DCE/DTE 區分)

interface Serial1
 description WAN Connection to Chicago
 ip address 192.168.99.5 255.255.255.252
 encapsulation hdlc
 clock rate 56000        ! 僅 DCE 端需配置
 no shutdown

關鍵點:show controllers serial 判斷纜線類型;預設帶寬 1.544Mbps,實際速率不同需用 bandwidth <kbps> 校正路由度量(單位 Kbps,注意與 clock rate 的 bps 不同)。

16.3 內建 T1 CSU/DSU

interface Serial0/1
 ip address 192.168.99.9 255.255.255.252
 no shutdown
 service-module t1 timeslots 1-12
 ! 可選參數:linecode ami / b8zs, framing sf / esf, fdl ansi / att
 ! 實驗室需自供時鐘:service-module t1 clock source internal

每時槽預設 64kbps;56k 電路需加 speed 56。所有參數必須與對端一致。

16.4 內建 ISDN PRI 模組

isdn switch-type primary-dms100
controller T1 0
 framing esf
 clock source line primary
 linecode b8zs
 pri-group timeslots 1-24

16.5 內建 56K CSU/DSU

interface Serial0/1
 ip address 192.168.99.25 255.255.255.252
 no shutdown
 service-module 56k clock rate 9.6

16.6 非同步串列介面

interface Serial1/7
 physical-layer async
 encapsulation ppp
!
line 40
 speed 115200

配置 physical-layer async 後,用 show line 找對應 line 號再設速率。

16.7 ATM 子介面(PVC)

舊寫法(11.3 前)

interface ATM0/0.1 point-to-point
 ip address 192.168.250.146 255.255.255.252
 atm pvc 1 0 60 aal5snap 10000 5000 3 oam 5

新寫法(11.3+,支援 OAM 週期性檢測)

interface ATM0/0.1 point-to-point
 ip address 192.168.250.146 255.255.255.252
 pvc 0/60
  vbr-nrt 10000 5000 30
  oam-pvc manage 5

驗證:show atm pvc 0/60 觀察 VCD、VPI/VCI、OAM 狀態。12.2(4)T 後可啟用 SNMP 告警:snmp-server enable traps atm pvc extension oam failure loopback。

16.8 Payload Scrambling

interface ATM0/0
 atm ds3-scramble        ! 或 atm e3-scramble
! 新平台
 atm scrambling cell-payload

16.9 Classical IP Over ATM (SVC)

需配置 ATM ARP Server、ILMI、QSAAL PVC、PVC 0/16 等,篇幅較長,此處略過核心命令結構。

copyright © 萬盛學電腦網 all rights reserved