[CentOS] How to make a network interface come up automatically on link up?

Tue Mar 26 04:29:01 UTC 2013
Joakim Ziegler <joakim at terminalmx.com>

Well, /etc/sysconfig/network-scripts/ifcfg-eth2 looks like this:

DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.10.0.0
NETMASK=255.255.0.0
IPADDR=10.10.0.1
USERCTL=no
MTU=9000
HOTPLUG=yes
NM_MANAGED=no

-- 
Joakim Ziegler  -  Supervisor de postproducción  -  Terminal
joakim at terminalmx.com   -   044 55 2971 8514   -   5264 0864

On 24/03/13 7:38, Patrick Lists wrote:
> On 24-03-13 08:03, Joakim Ziegler wrote:
>> How do I do that? I've not used network manager to set it up, I just
>> made the ifcfg-eth2 file from scratch.
>
> Besides the other two suggestions you may also want to set a proper
> SELinux label on the ifcfg-eth2 file with something like:
> /sbin/restorecon -v -F /etc/sysconfig/network-scripts/ifcfg-eth2
>
> The SELinux label I have on my ifcfg-eth0 is:
> -rw-r--r--. root root system_u:object_r:net_conf_t:s0  ifcfg-eth0
>
> Regards,
> Patrick
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>