I have Cent OS 6.4 inside my virtualbox with two ethernet devices. One is connected to the internet with NAT, the other is connected to the internal network.
here is my eth2 config file
cat /etc/sysconfig/network-scripts/ifcfg-eth2 DEVICE=eth2 BOOTPROTO=none NM_CONTROLLED=no ONBOOT=yes NAME='internal network' NETWORK=10.0.1.0 NETMASK=255.255.255.0 IPADDR=10.0.1.27 USERCTL=no
if I run
the interface gets set up and everything works, but I have to run that after each reboot.
How can I have that network configured after a reboot too. I thought ONBOOT was the only flag I needed.
Edit: I had run
# chkconfig network on # chkconfig | grep network network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
The problem vas that NetworkManager was on and the settings got overriden. Solved it with:
chkconfig NetworkManager off