I am using windows 7. I installed virtual box and created a ubuntu 16.04 vm. it has the ip of 192.168.0.10
But all my clones also have the same ip. I tried different ways to change the ip, but nothing seems to be working
The contents of the my /etc/network/interfaces
file is as follows
auto lo
iface lo inet loopback
I added the following
auto eth0
iface eth0 inet static
address 192.168.0.5
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
After restarting the network using sudo service network-manager restart
, there is no change, my ip shows up as 192.168.0.10
ip addr show - shows the following
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:8c:7a:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.225.194/24 brd 192.168.225.255 scope global dynamic enp0s3
valid_lft 42984sec preferred_lft 42984sec
inet6 fe80::aad4:1c86:ded3:1636/64 scope link
valid_lft forever preferred_lft forever
eth0
? What doesip addr show
say? And why do you call iteth0
on the 1st line andetho0
on the second?