I had two network interface on VMware as below. One was made for NAT and other is for bridged. So I just wonder which one is eth0 or eth1 in Linux.
First, find MAC address of VMware in a *.vmx file.
C:\VMImage>findstr /C:”.generatedAddress ” *.vmx
SecurityOnion.vmx:ethernet0.generatedAddress = “00:0c:29:1b:48:4d“
SecurityOnion.vmx:ethernet1.generatedAddress = “00:0C:29:1B:48:57“
Secondly, find MAC address of Network Interfaces.
root@sensor:~# ifconfig | grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:0c:29:1b:48:4d
eth1 Link encap:Ethernet HWaddr 00:0c:29:1b:48:57
In other way, you can check MAC address of Network Interfaces.
root@sensor:~# lspci | grep -i ethernet | awk {‘print $1’} | while read pciid; do echo $pciid $(cat /sys/bus/pci/devices/*$pciid/net/*/address) $(cat /sys/bus/pci/devices/*$pciid/net/*/uevent); done
02:01.0 00:0c:29:1b:48:4d INTERFACE=eth0 IFINDEX=2
02:05.0 00:0c:29:1b:48:57 INTERFACE=eth1 IFINDEX=3
And then you can compare both result. In my case eth0 is NAT Network Interface and eth1 is VMnet0 Network Interface.



Source: http://kindofnormal.com/img/truth_facts/iphone/2013/10/11.png