lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAB+qc9CWOOTNruMhcAugmjhCne8a-FG9kk8X6ty8-Ss5CpKp5w@mail.gmail.com>
Date:   Mon, 30 Mar 2020 19:49:24 +0300
From:   Vaidas BoQsc <vaidas.boqsc@...il.com>
To:     netdev@...r.kernel.org
Subject: A robust correct way to display local ip addresses of the device
 Gautieji x

Are there any ways to output only the local ipv4 (inet) addresses of
the device using ip command?

I tired this way and both UNKNOWN, Down are not filtered away. Is my
usage of syntax incorrect?

 ip --brief address show up
lo               UNKNOWN        127.0.0.1/8 ::1/128
enp7s0           DOWN
wlp8s0           UP             192.168.0.103/24 fe80::22c:79e4:a646:a7b/64

  Even so, if enp7s0 and lo were filtered, I would still want an
output of simply 192.168.0.103 from ip command which can't be provided
without piping into other tools?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ