2012/8/10 Matthew Burgess <matt...@linuxfromscratch.org>: > On Thu, 9 Aug 2012 23:15:32 +0800, xinglp <xin...@gmail.com> wrote: >> Maybe we should replace "ip addr show ${IFACE}" with "ip -f inet addr >> show ${IFACE}". > > It would help if you explained *why* you think this needs changing. > Does the current code not work? If so, how does the bug/issue manifest > itself? >
older version ============================ root [ ~ ]# ip --Version ip utility, iproute2-ss120521 root [ ~ ]# ip addr show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0 inet6 fe80::xxxxxx/64 scope link valid_lft forever preferred_lft forever newer verion ============================ root [ ~ ]# ip --Version ip utility, iproute2-ss120801 root [ ~ ]# ip addr show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff root [ ~ ]# ip -f inet addr show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0 So the newer verion of 'ip' did not show the "inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0" without option "-f inet". >> The latest 'ip' has somethings changed. > > Like what? And what changes are relevant to LFS' > scripts/instructions/configuration? I didn't see any changelog of iproute2. And there is lots of changes between iproute2-3.4.0/ip and iproute2-3.5.0/ip . Well, it looks like a bug of iproute2-3.5.0 . But where is the upstream of iproute2 to feedback ? > > Thanks, > > Matt. > > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-dev > FAQ: http://www.linuxfromscratch.org/faq/ > Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page