On 16/10/2012 19:14, Andrzej Odyniec wrote:
> Dominic Raferd wrote:
>> Seems that it defaults to showing IPv6 address not IPv4, try:
>>
>> ip -f inet addr
> Not exactly. In iproute2-3.5.0 is issue, that without explicite -f option,
> output of ip addr command defaults to -f link (or -0), so there is no any IP
> family addresing shown (only link addressing). Option -f link or -4 solves
> problem, but many old scripts do not uses -4 explicite.
>
> Better solution is upgrade to iproute2-3.6.0, where bug is corrected and ip
> command is working like in v.3.4.0.
Thanks for putting me right, Andrzej, at least my suggestion worked even
if my explanation was wrong!
|