martes, 15 de julio de 2014

Configure Dynamic IP on Centos 6.5 -Virtual Box-

Step by step


1.- Edit settings:

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

2.- Your setting will be like these: (Don't change the HWADDR)

HWADDR=08:00:27:08:47:E9
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NM_CONTROLLED=no

2.- Execute: ifconfig eth0
      Make sure that the HWaddr corresponds to the one at ifcfg-eth0. If not, then you want to update the file.

3.- Look at: /etc/udev/rules.d/70-persistant-net.rules that should have also the same HWAddr

4.- Take a look to the Virtual Box Settings ->  Network Mac Address to have the same HWaddr

5.
Make sure that your Networks setting in virtual box for your VM is configured as "Bridged adapter" and "wlan0" as the network adapter name.

6.-
If ifconfig is not giving you a network IP, then try
#dhclient eth0


7.- If you have eth1 then run
#dhclient eth1

4.- Restart network

# service network restart

5.- Review your new IP

# ifconfig -a

6.- ping 8.8.8.8 and you will have response





IMPORTANT: One more tip!!! If you are planning to do ssh make sure openssh-clients is installed

Enjoy!
P.S. What is the most expensive flag?

No hay comentarios:

Publicar un comentario en la entrada