Am 13.04.2016 um 18:51 schrieb Sam Tresler:
I didn't make it through the rest of your post, but thought I'd chime in
with `ifconfig` has been deprecated since 2009.

2009. I don't get deep into the distros, but I really wish they'd stop
shipping it.

`man ip` should give you info on the right tool you need to retrieve
your network info. From there it is just some pipework to get a list you
can iterate over.

$ ip -o a | awk '{print $2}' | uniq

blub - gives a (incomplete) list of the current interfaces - so what is the advantage you wnated to demonstrate?

[root@rh:~]$ ip -o a | awk '{print $2}' | uniq
lo
vmnet8
br-lan

[root@rh:~]$ ifconfig | grep mtu
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1472
br-lan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1472
eth0: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1472
eth1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1472
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
vmnet8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to