1

Update

Please take note that this question has nothing to do with Renaming my wlan network interface

That question doesn't have anything to do with VMware Workstation

My Question is related to Linux Guest OS inside VMware Workstation

I have Linux installed in VMware Workstation with 3 network interfaces.

To make it easier to read, I have assigned 3rd octet of the IP Address based on VMnet ID.

VMnet1 - 172.31.1.0/24
VMnet2 - 172.31.2.0/24
VMnet3 - 172.31.3.0/24

The setting of VMware Virtual Network Editor is as follows:

Virtual Network Editor

Virtual Machine Settings

enter image description here

DHCP is used in this setup.

When I run ifconfig, I found that

eth0 assigned to VMnet2 network
eth1 assigned to VMnet3 network
eth2 assigned to VMnet1 network

I'm not sure why VMware assign it this way.

user@linux:~$ ifconfig | grep ad
eth0      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A0  
          inet addr:172.31.2.23  Bcast:172.31.2.255  Mask:255.255.255.0

eth1      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A1
          inet addr:172.31.3.22  Bcast:172.31.3.255  Mask:255.255.255.0

eth2      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A2  
          inet addr:172.31.1.24  Bcast:172.31.1.255  Mask:255.255.255.0

user@linux:~$ 

Is it possible to change it?

I would like to get something like this ...

eth1 assigned to VMnet1 network
eth2 assigned to VMnet2 network
eth0 assigned to VMnet3 network
8
  • 1
    There is no relation between the number of the "Network Adapter" in VMWare and the number of eth interface inside the virtual machine. You can use udev rules to give custom names to your interfaces, using mac addresses to recognize them. I voted to close this question as a duplicate of many others.
    – andcoz
    Sep 5, 2018 at 8:14
  • Erkk .. there is ... if you set 5 "Network Adapter" interfaces in VMWare , then you'll get 5 interfaces as well ... eth0, eth1, eth2, eth3, eth4. Are you sure you're using VMware Workstation and Linux?
    – user264359
    Sep 5, 2018 at 8:36
  • the wlan issue not related to this at all ...
    – user264359
    Sep 5, 2018 at 8:37
  • Another question on the same issue: Udev : renaming my network interface
    – andcoz
    Sep 5, 2018 at 8:47
  • 2
    @Sabrina SO ... it isn't very welcoming. Your conception of voting (here, at SO/SE) appears misguided. Voting without comment or justification is perfectly acceptable here. Votes (up or down) just reflect whether the voter finds the post particularly useful or not. Your implicit expectation that a downvote must be accompanied by a suggestion for improvement has simply no foundation. You should not take votes as something personal. Sep 5, 2018 at 9:40

0

You must log in to answer this question.