I created a RedHat VM (6.5) on an Ubuntu (14.04) server. I changed the IP address to something unique in /etc/sysconfig/network-scripts/ifcfg-eth0. I changed the MAC address for eth0 /etc/udev/rules.d/70-persistent-net.rules. I've never been able to give this new RedHat VM an IP address. eth0 never comes up. I get an error about eth0 does not seem to be present. What should I do to give this VM an IP address?
Does dmesg say anything about your network card? Does "ifconfig -a" show anything?– Ryan BabchishinOct 13, 2015 at 4:49
ifconfig -a looks good. dmesg has very few and only insignificant occurrences of the word "network." dmesg has no references to "card."– Catbird55Oct 13, 2015 at 16:24
I meant something more like "dmesg | grep eth"– Ryan BabchishinOct 13, 2015 at 16:40
Can you please provide the contents of /etc/sysconfig/network-scripts/ifcfg-eth0? Can you try /sbin/service network restart and also try ifup eth0 and ifdown eth0?– Ryan BabchishinOct 13, 2015 at 16:45
DEVICE=eth0 BOOTPROTO=static ONBOOT=yes IPADDR=x.x.x.x NETMASK=255.255.255.0 GATEWAY=x.x.x.1 MACADDR=34:ab:cd:ef:99:aa I tried those network restart and ifdown and ifup commands. No luck.– Catbird55Oct 13, 2015 at 19:45
/etc/sysconfig/network-scripts/ifcfg-eth0, it must be
as, in RHEL 6, this option is not supported anymore.