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>] [day] [month] [year] [list]
Date:   Tue, 31 Mar 2020 15:32:19 +0300
From:   Vaidas BoQsc <vaidas.boqsc@...il.com>
To:     netdev@...r.kernel.org
Subject: Output only currently active local IP addresses

I would like to know the correct robust way to obtain/get local IPv4
addresses of all active currently network interfaces.

I tried a command: ip --brief address
however it provides a lot of unecessary information: interface name,
status of UP/Down and lots of other additional information and
formatting, when all I need is only literal ip addresses as an output.

I couldn't find a way to get such output without using parsing tools
and piping. Is it true that ip command does not have a way to display
currently active ip addresses as a simple list without any formatting
and without inactive interfaces' information and pseudo interfaces
like ip address of localhost?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ