Chinaunix

标题: 网卡参数 LOWER_UP啥意思? [打印本页]

作者: exright    时间: 2010-11-11 10:40
标题: 网卡参数 LOWER_UP啥意思?
ip add显示网卡地址:

eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000


请问 LOWER_UP啥意思?
作者: exright    时间: 2010-11-13 13:16
没Google到解释!
谁能解释下!
作者: aplah    时间: 2010-11-15 11:33
啥os啊?
作者: mjslz    时间: 2010-11-15 16:31
都不晓得咯,硬是喊
作者: exright    时间: 2010-11-16 09:13
版本如下:
  1. [root@localhost ~]# uname -r
  2. 2.6.18-128.el5
  3. [root@localhost ~]# more /etc/redhat-release
  4. Red Hat Enterprise Linux Server release 5.3 (Tikanga)
  5. [root@localhost ~]# iptables -V
  6. iptables v1.3.5
复制代码


我注意了下,2.4内核的Linux并没有LOWER_UP这个属性!
作者: aplah    时间: 2010-11-16 10:20
lz把命令的输出全部贴出来吧,别的linux版本没发现这种情况啊
作者: exright    时间: 2010-11-16 10:41
  1. [root@localhost ~]# ip add
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
  3.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4.     inet 127.0.0.1/8 scope host lo
  5.     inet6 ::1/128 scope host
  6.        valid_lft forever preferred_lft forever
  7. 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
  8.     link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
  9.     inet 172.16.1.100/24 brd 172.16.1.255 scope global eth0
  10. 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
  11.     link/ether  xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
  12.     inet 172.22.6.1/24 brd 172.22.6.255 scope global eth1
  13.     inet6 xxxx::xxxx:xxxx:xxxx:xxxx/64 scope link 
  14.        valid_lft forever preferred_lft forever
  15. 4: sit0: <NOARP> mtu 1480 qdisc noop
  16.     link/sit 0.0.0.0 brd 0.0.0.0
复制代码

作者: aplah    时间: 2010-11-16 11:54
搜索了下,一种解答是
Attatched is a patch for the LOWER_UP flag in 'ip link/addr' output.
Useful to check if network cable is inserted or not.

另一种附链接http://www.spinics.net/lists/netdev/msg134538.html
作者: aplah    时间: 2010-11-16 12:00
linux's mail list discuss http://lists.busybox.net/pipermail/busybox/2008-June/031741.html

advise ask this question in the linux kernel,pls
作者: exright    时间: 2010-11-16 12:50
Attatched is a patch for the LOWER_UP flag in 'ip link/addr' output.

Useful to check if network cable is inserted or not.



谢谢aplah的帮忙!不过英文看不太懂!
感觉LOWER_UP似乎是物理电路接通,是低压弱电(LOWER),非高压强电(POWER);那么<BROADCAST,MULTICAST,UP>此UP相较于LOWER_UP似乎是OSI的第一层物理层的联通。
不知道猜测的对不对!
作者: aplah    时间: 2010-11-16 13:35
根据英文解答是这个意思,至于为何加入这个patch used for flag我也不太清楚

希望以上回答你能满意
作者: exright    时间: 2010-11-16 13:43
根据英文解答是这个意思,至于为何加入这个patch used for flag我也不太清楚

希望以上回答你能满意
aplah 发表于 2010-11-16 13:35


再次感谢aplah
作者: exright    时间: 2010-11-16 14:09
刚做了实验!纠正一下前面的猜测!
ifconfig eth0 down后
eth0 的状态为    <BROADCAST,MULTICAST>
ifconfig eth0 up 且 没有连接网线的情况下:
eth0 的状态为    <NO-CARRIER,BROADCAST,MULTICAST,UP>
接通网线且实体卡link指示灯亮的情况下:
eth0 的状态才为 <BROADCAST,MULTICAST,UP,LOWER_UP>
作者: aplah    时间: 2010-11-16 20:07
刚做了实验!纠正一下前面的猜测!
ifconfig eth0 down后
eth0 的状态为    
ifconfig eth0 u ...
exright 发表于 2010-11-16 14:09


英文解释是对的,你再看一下




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2