Configuring Network Interface-Ubuntu VmWare

Many users using a Virtual Player might often (rather most of the times) require to configure a network interface in the VmWare. The most common requirements for such an interface are
that it should get an ip of  the physical network to which the host machine is connected. This then righteously makes the guest OS running on VmWare an independent machine. So I dedicate this post to show you simple steps to configure a network interface in the UBUNTU guest OS in the VmWare player .

1)    In the Virtual Machine settings select:
    Virtual MAchine -> Virtual MAchine Settings. In Hardware tab select Network Adapter.
    On right hand side panel:
    b) Network Connection select:

        -> Bridged: Coneected directly to the physical network.
            -> Replicate physical network connection state

2)    Play or power on the virtual machine.

3)    Start a terminal and run the following command to see which ethernet interface has been enabled.

    $ ifconfig -a

    This lists a number of network interfaces along with the loopback interface. Lets take for example that eth1 is listed.

4)    Open the file /etc/network/interfaces and make the following changes:

    $ sudo vim /etc/network/interfaces

    Add the listed interface in the following manner: ( suppose its eth1 )

    auto eth1
    iface eth1 inet dhcp

    Save and Exit.
    This will configure the eth1 to take ip from the dhcp server of the physical network whenever networking service starts.

5)    Next restart the networking service with the following command:

    $ sudo /etc/init.d/networking restart

The ethernet interface will be configured according to the physical network of the host OS.

You can check this by running ifconfig -a and seeing that the listed interface now has an IPv4 address.

Also you can check by pinging any machine on the physical network of the host OS machine.

No comments:

Post a Comment