6 Aug
2012
6 Aug
'12
11:47 a.m.
On 6 August 2012 12:50, Karol Blazewicz <karol.blazewicz@gmail.com> wrote:
$ 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
Read the man page for other options.
Sure that these options works, but the previous behaviour which: 1. was shorter to write 2. allowed to inspect both IPv6 and IPv4 was much better IMO. The man page only adds confusion, as it says: "ip falls back to the default one, usually inet or any" when no family was specified and it cannot be guessed from arguments.