问题
Is there an option to identify the network interface type in java. The reason for asking this question is some set of Sun hardware boxes have a special kind of interface (DSCP interface) used for internal communication. We have an application developed for Solaris platform and I want to print only non-internal common interfaces.
To know more about DSCP
http://blogs.oracle.com/olympus/entry/dscp
回答1:
I know this isn't much of an answer, but here's a tutorial that details Programmatic Access to Network Parameters. That being said, it may also be useful to consult the NetworkInterface API. Within the tutorial, there's a few working examples that will shed more light on the subject.
来源:https://stackoverflow.com/questions/6112489/how-to-get-the-network-interface-type