interface-bounding:The Linux bonding driver provides a method for aggregating
multiple network interfaces into a single logical bonded interface. The logical bounded interface will have only one MAC address,which is bounded from one of the original interfaces. ifconfig
will show all the original interfaces with the same MAC address.
Now,I'm going to found the original MAC address of each interface in Java.How ?
I has confirmed that I can't find them through NetworkInterface.getInterfaceAddresses()
and NetworkInterface.getSubInterfaces()
Any other ways?
UPDATE:
before bounding:
after bound eth1 and eth2 to bound0:
The java code show interfaces info:
ALL interfaces:[name:bond0 (bond0), name:eth0 (eth0), name:lo (lo)]
they are [{netIf bond0,host 192.168.122.38,mac 525400F801B9,ip 192.168.122.38}, {netIf eth0,host hatest02,mac 5254008C5B48,ip 192.168.10.38}]