在執行 sh interface s0 時, 會出現
Router# sh int s0
Serial0 is down, line protocol is down
這個可能是什麼問題??

ANS:
在 sh interface 時, 可能會有幾種狀況:

1. Router# sh int e0
 Ethernet0 is up, line protocol is up

 第一個訊息 Serial0 is up 是參考到 Physical Layer, 它會檢查你實體裝置連線是否有接上或啟動.
 第二個訊息 line protocol is up 是參考到 Data-link Layer, 會從連結端尋找 keepalive 的訊號是否存在, 用來確認訊號是否有斷掉)
 若 interface 與 line protocol 都是 up 的, 那表示目前此介面的運作正常.

2. Router# sh int s0
 Serial0 is up, line protocol is down

 若 interface up, 但 line protocol down, 這個是 Data-link Layer 的問題.
 可能是時脈的問題, keepalive 問題, 或是 frame 封裝的問題. 檢查一下是否需要設定 clock rate, 以及兩邊封裝方式是否一樣.
 一般來說比較不會是 keepalive 問題啦!(詳細如後)
 clock rate 問題, 可參考 這一篇

3. Router# sh int s0
 Serial0 is down, line protocol is down

 這個表示 interface 及 line protocol 都沒作用, 基本上是 Physical Layer 的問題
 檢查一下網路線或 V35 cable 是否有連接好.

4. Router# sh int s0
 Serial0 is administratively down, line protocol is down

 這可能有任何一端沒有啟用 interface, 請到 interface 設定中, 下 no shutdown 的指令, 如:
 Router# conf t
 Enter configuration commands, one per line. End with CNTL/Z.
 Router(config)# int s0
 Router(config-if)# no shutdown
 Router(config-if)# end
 Router#

[補充一]:

 一般來說比較不會是 keepalive 問題, 以 cisco router 來說, 一般 keepalive 值預設為 10 秒,
每部 router 預設 10 秒會傳送 keepalive 訊息給另一端的 router,
如果另一端沒接收到, 或是兩端的 keepalive 間隔設定不同, 可能就無法運作.
要看 keepalive 可直接使用 sh int 來看, 如:
Router# sh int s0
Serial0 is down, line protocol is down
.....(略)
Encapsulation PPP, loopback not set, keepalive set (10 sec)
.....(略)
若沒設定, 則為:
Encapsulation ARPA, loopback not set, keepalive not set

或者你可以下 sh run, 看看 interface 中是否有 no keepalive 的設定, 如:
Router# sh int s0
interface Serial0
ip address 192.168.36.1 255.255.255.0
......(略)
no keepalive
......(略)

要設定 keepalive, 可到該 interface 下面設定, 如:
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# int s0
Router(config-if)# keepalive ?
<0-32767> Keepalive period (default 10 seconds)


Router(config-if)# keepalive
Router(config-if)# end
Router#

[補充二]:

 另一個看 interface 狀態非常好用的指令是 sh ip interface brief, 可看出各個網路介面的狀態, 如:

Router# sh ip int brief
Interface       IP-Address   OK? Method Status        Protoco
Serial0/0       unassigned   YES NVRAM administratively down   down
Serial0/1       172.20.0.5   YES NVRAM down         down
Serial0/2       172.20.0.9   YES NVRAM up          up
Serial0/3       172.20.0.13   YES NVRAM up          up
Serial0/4       172.20.0.17   YES NVRAM up          up
Serial0/5       172.20.0.21   YES NVRAM up          up
Serial0/6       172.20.0.25   YES NVRAM up          up
Serial0/7       172.20.0.9   YES NVRAM up          up
BRI1/0         unassigned   YES unset administratively down   down
Ethernet1/0      10.1.1.36    YES NVRAM up          up
BRI1/0:1        unassigned   YES unset administratively down   down
BRI1/0:2        unassigned   YES unset administratively down   down
BRI1/1         unassigned   YES unset administratively down   down
BRI1/1:1        unassigned   YES unset administratively down   down
BRI1/1:2        unassigned   YES unset administratively down   down
Serial2/0       172.20.2.1   YES NVRAM up          up
Serial2/1       172.20.2.5   YES NVRAM up          up
Serial2/2       172.20.2.9   YES NVRAM up          up
Serial2/3       172.20.2.13   YES NVRAM up          up
Serial2/4       172.20.2.17   YES NVRAM up          up
Serial2/5       172.20.2.21   YES NVRAM up          up
Serial2/6       172.20.2.25   YES NVRAM up          up
Serial2/7       172.20.2.29   YES NVRAM up          up
Serial3/0       172.20.3.1   YES NVRAM up          up
Serial3/1       172.20.3.5   YES NVRAM up          up
Serial3/2       172.20.3.9   YES NVRAM up          up
Serial3/3       172.20.3.13   YES NVRAM up          up
Serial3/4       172.20.3.17   YES NVRAM up          up
Serial3/5       172.20.3.21   YES NVRAM up          up
Serial3/6       172.20.3.25   YES NVRAM up          up
Serial3/7       172.20.3.29   YES NVRAM administratively down   down