I have created a VM in virtual box using Centos-6.7. I have configured eth0 interface as bridge adapter. However I am not able to connect to internet. When I did ifconfig , I could only see loopback address as shown below.
ip link displays the available network interfaces on machine.
- add NETWORKING=yes in /etc/sysconfig/network file.
- create a new file called ifcfg-eth0 in /etc/sysconfig/network-scripts/ folder as shown below. DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes - save and reboot the machine.
- Now you should be able to see the eth0 network in ifconfig
ifup eth0 will throw an below error “Configuration for eth0 not found “ unless we create a file in /etc/sysconfig/network-scripts/ifcfg-eth0
ifup eth0 throws “Device eth0 does not seem to be present, delaying initialization.”
rm -f /etc/udev/rules.d/70-persistent-net.rules
restart