Windows equalivalent to eth0

Justin Fuller picture Justin Fuller · Mar 9, 2009 · Viewed 9.3k times · Source

Is there a generic IP device name for windows similar to "eth0" used by Linux and Solaris?

I am attempting to monitor SCTP traffic, which appears to be successful passing the ip address, but this means for every machine to use this application would changing to use the host address.

Thanks

Answer

MSalters picture MSalters · Jun 15, 2009

The best way to find the "default" interface is to query the route table for the 0.0.0.0 (default) route. This will be associated with exactly one interface. Of course, in a dynamic environment, this is a snapshot.

C:\> route PRINT 0.0.0.0

Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0   10.117.254.254     10.117.1.68       20
Default Gateway:    10.117.254.254