You are not logged in.
➜ ~ ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 20:cf:30:23:c1:32 brd ff:ff:ff:ff:ff:ffUsing ifconfig it is displayed just fine:
➜ ~ ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255Is there anything that needs to be done for ip to work reliably?
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
No trouble here. It's not a default issue.
Offline
Not sure if this is any help, but it's system specific as mine works as expected.
You're missing more than just the IP address, as compared to my output.
Are you using testing? If not, the next version is in testing, so you could try that?
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
I am using testing...
indeed with version from [core] it is working
Last edited by Rasi (2012-08-06 10:47:49)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
See also http://comments.gmane.org/gmane.linux.a … eral/44077
Not sure whether you just report upstream (see ip man page) or also report it as a bug in Arch as well?
Someone's reported iproute2 as out of date, but not sure it should be upgraded with this issue?
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Read the man page:
$ ip -4 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0Offline
Read the man page:
$ ip -4 addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
Ah, thanks for pointing that out. I'll need to watch out for that when it gets updated - I have a few scripts that use it.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Bug reported https://bugs.archlinux.org/task/31052
Patch provided.
Offline
Bug closed, iproute2 3.5.1 fixed it for me:
Offline