After the initial DHCP configuration is received I set my Virtual Machines to a static address.

To do this:

sudo nano /etc/network/interfaces

and change the following from:

auto eth0
iface eth0 inet dhcp

to (in this example, IP 192.168.1.10)

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Then issue the commands:

ifdown eth0
ifup eth0

Running ‘ifconfig’ should then display the correct results for eth0.

Comments are closed.

Post Navigation