Friday, August 9, 2013

CentOS 6.4 on HyperV - No Neworking on eth0

Just installed CentOS 6.4 from the CentOS-6.4-x86_64-bin-DVD1.iso image as a HyperV virtual machine.

After installation I observed that the eth0 adapter is not configured.
This blog post helped me to start networking, thanks Rutger Thomschutz!

Based on the blog post mentioned I did the following:

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

# changed ONBOOT to Yes
ONBOOT = yes

Created the hard links, brang up the adapter and rebooted the server:
# edit 9/10/2013 - in most cases you don't have to create the links below. 
# ln /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth0
# ln /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/networking/profiles/default/ifcfg-eth0
ifconfig eth0 up
reboot now

No comments:

Post a Comment