FastEthernet0/2 is up, line protocol is down
(2010-06-17 15:23:49)
标签:
杂谈 |
分类: 交换机CCNA |
在 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
Router#