Berend Dekens
2008-Nov-13 10:49 UTC
[CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot
With one problem down I still have another remaining. Since the installation of our primairy webserver we have had a problem with the network aliasses. Our server has 8 IP adresses so we used the tool provided in the GUI to specify (and name - for our own convinience) eth0 aliasses with the other 7 adresses. After setting them up, applying them, activating them and restarting 'networking' (I dare say this is a lot of button pushing just to enable one NIC) all is well and every program can use its preferred IP. However, after a reboot, all aliasses are disabled: they are present in the configuration but they are not activated. I feared I did something wrong so I removed all addresses, tried to find more clues in the docs and now I'm back where I started. How can I figure out what is wrong? I might add that I am not afraid of using a console (actually prefer it on linux servers) but I am new to CentOS so I tried to do everything by using the GUI - which in this case keeps failing... Regards, Berend Dekens
Ralph Angenendt
2008-Nov-13 11:16 UTC
[CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot
Berend Dekens wrote:> However, after a reboot, all aliasses are disabled: they are present in > the configuration but they are not activated. I feared I did something > wrong so I removed all addresses, tried to find more clues in the docs > and now I'm back where I started.Go into /etc/sysconfig/network-scripts and edit the corresponding files in there. If they have "ONBOOT=YES" change that to "ONPARENT=YES". If they have neither, add ONPARENT=YES. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081113/e88c5959/attachment-0003.sig>
Kai Schaetzl
2008-Nov-13 12:31 UTC
[CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot
Ralph Angenendt wrote on Thu, 13 Nov 2008 12:16:22 +0100:> If they have "ONBOOT=YES" change that to "ONPARENT=YES". If they have > neither, add ONPARENT=YES.FYI: I've been creating NIC aliases with ONBOOT=yes for quite some time without a problem as I wasn't aware of the ONPARENT directive. I usually just copy the file and change it accordingly. The trap I usually run into is that I forget to change DEVICE. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
Berend Dekens
2008-Nov-13 13:43 UTC
[CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot
None of the files have ONBOOT but they do have ONPARENT... I'll add the ONBOOT param and reboot the server tonight to see if it worked. Cheers, Berend Ralph Angenendt wrote:> Berend Dekens wrote: > >> However, after a reboot, all aliasses are disabled: they are present in >> the configuration but they are not activated. I feared I did something >> wrong so I removed all addresses, tried to find more clues in the docs >> and now I'm back where I started. >> > > Go into /etc/sysconfig/network-scripts and edit the corresponding files > in there. > > If they have "ONBOOT=YES" change that to "ONPARENT=YES". If they have > neither, add ONPARENT=YES. > > Cheers, > > Ralph > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >