路由器是網路橋樑,連通異構網路、選路、阻擋非法存取。以 Cisco 2501 為例,梳理完整配置與調試流程,供初學者參考。
conf t
int e0
ip address
ip address secondary ! 同介面雙 IP(如 A 類 + B/C 類)
no shutdown
exit
若 Ping 不通,多半忘記 no shutdown 啟用介面。
conf t
int s0
ip address
encapsulation x25 ! 預設 DTE
x25 address ! 郵電局提供
x25 map ip <對方IP> <對方X.25> broadcast
x25 htc <最大雙向通道數> ! 1-4095,依郵電局實際值
x25 nvc <虛擬電路數> ! 不可超過郵電局提供值
exit
no shutdown ! 記得啟用 S0
常見問題:
• Ping S0 通、Ping 對方不通 → 檢查本地/對方 X.25 位址、映射 IP、路由設定。
• 有丟包 → 線路品質、RJ45 接觸、htc/nvc 超過郵電局實際值。
conf t
int s2
ip address
exit
no shutdown
conf t
int s0
ip address
encapsulation frame-relay
no nrzi_encoding
frame-relay lmi-type q933a ! ANSI/Cisco/Q933a 三選一
frame-relay interface-dlci broadcast
frame-relay map ip <對方IP> <本地DLCI> broadcast
no shutdown
exit
int s2
physical-layer async ! 或 sync
conf t
router eigrp 20
passive-interface serial0 ! 連 X.25 介面設為被動
passive-interface serial1
network <乙太網路網段>
network
no auto-summary
exit
ip route <對方乙太網段> <對方WAN介面IP> 90
dialer-list 1 protocol ip permit
no shutdown)。route add default 1 )。route add <對方乙太> <對方WAN> 1)。tracert 追蹤路由路徑,鎖定故障節點。