:: Re: [DNG] netman: support for wlan1…
Inizio della pagina
Delete this message
Reply to this message
Autore: Steve Litt
Data:  
To: dng
Oggetto: Re: [DNG] netman: support for wlan1, wlan2, ... and eth1, eth2, .... and new systemd's naming scheme
On Mon, 28 Sep 2015 15:00:46 +0200
Edward Bartolo <edbarx@???> wrote:

> Hi All,
>
> My next coding will be to add support for network interfaces other
> than wlan0 and eth0. Regarding this, I would like to have your ideas
> about how should I go not to minimally disrupt the already existing C
> code that is already working.


Good. An excellent choice!

Be aware that the following command tells you the names of all network
interfaces:

ip link

If you want a list of their addresses, this is accomplished by:

ip addr

Obviously, you'd need a little creative AWK to isolate just the info
you want.



SteveT

Steve Litt
August 2015 featured book: Troubleshooting: Just the Facts
http://www.troubleshooters.com/tjust