发新话题
打印

查看端口状态时switch口(ethernet口)和router口(serial口)的区别

查看端口状态时switch口(ethernet口)和router口(serial口)的区别

本文网址:http://bbs.bitscn.com/57780 复制

查看端口状态时switch口(ethernet口)和router口(serial口)的区别
--------------------------------------------------------------------------------

通常我们查看端口的up/down状态时有如下几种情况
         第一种情况 端口被手动shutdown 这个显示为端口administratively down 当然协议就down的
            Serial0 is administratively down, line protocol is down
            Ethernet0 is administratively down, line protocol is down
        第二种情况 端口和协议都是up 链路是通的 这种情况也容易理解
            Serial0 is up, line protocol is up
            Ethernet0 is up, line protocol is up
        第三种情况 端口down 但非administratively down 这种情况是端口曾经被激活过 但由于对方down掉或链路不通引起
            Serial0 is down, line protocol is down
            Ethernet0 is down, line protocol is down
        第N种情况 在端口状态为up/up的时候 端口的另外一端被手动shutdown后 以太网端口和串口端口的状态就不一样了
        
            Serial0 is down, line protocol is down
            Ethernet0 is up, line protocol is up
        这里我们看到同样是对方的端口手动down掉 S0口马上也down掉了 而E0口却依然是up/up状态
        后来我用clear counters ethernet 0 命令后再次查看 E0口状态依然是up/up
        
        后求证后得出答案:
        以太口只要物理上已经连接 有电平信号 端口就会up 这是由于通信信令机制决定的
        当然不是说本来以太口端口是down的 你拿根网线插上它就会up
        正解=当以太口端口在up/up状态的时候 如果对方down掉 本以太口端口仍然会在up/up状态 而不会在up/down 更不会down/down
        而对于串口遇上以上的情况 端口会变成down/down状态
        
        第N+1种情况 端口的状态为up/down 此种情况一般发生在router的wan口上 且大多为协议方面的原因 具体情况太多 比较协议多嘛 这里没有例子

http://www.one-tom.com

ITAA网络技术训练中心学习情报组  IT傻博士

TOP

好帖。

TOP

好貼

TOP

thinks

http://www.one-tom.com

ITAA网络技术训练中心学习情报组  IT傻博士

TOP

解说很详细

TOP

发新话题
版块跳转 
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论! 24小时违法信息处理:QQ58284700 TEL29989777
沪ICP备05002360号 / 增值电信业务经营许可证沪B2-20050290 / 当前时区 GMT+8, 现在时间是 2008-5-17 05:08 /