martes, 27 de agosto de 2013

Configure VM IP Address on Ubuntu 12.04

Step by step

1.- Go to virtual box,  select your vm and go to settings-> network
2.- Then on the attached to: select Brifged adapter
3.- Go to advanced and click on update button of Mac Address
4.- Start the VM
5.- remove the file /etc/udev/rules.d/70-persistebt-net.rules
6. Edit your /etc/network/interfaces, change "dhcp" to "static" like:
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
gateway 192.168.1.1

7.- do a #/etc/init.d/networking restart and see ifconfig
8.- If not gettin the ip ... reboot
9.- Check ifconfig, you should have an IP now


If not then do
10.- # sudo dhclient eth0


There you go, you have an IP

Enjoy!
P.S. Did you know every pirate had its own flag?

No hay comentarios:

Publicar un comentario