FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-13-2008, 12:43 PM
Berend Dekens
 
Default 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@centos.org
http://lists.centos.org/mailman/listinfo/centos



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-13-2008, 01:47 PM
Berend Dekens
 
Default Virtual NICs (aliases like eth0:1) won't come up after reboot

Update: Didn't help - but this time I was connected to a console so I
could see the bootup and I get this:

"SIOCSIFFLAGS: Cannot assign requested address"

Strange thing is that I have multiple aliasses and only 3 errors...

I tried Google with this error and I see lots of people with Ubuntu
running into that one but CentOS hasn't got the same scripts so their
solution won't help me.


Cheers,
Berend

Berend Dekens wrote:

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
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-13-2008, 01:58 PM
 
Default Virtual NICs (aliases like eth0:1) won't come up after reboot

In article <491C3DFA.2070400@cyberwizzard.nl>,
Berend Dekens <berend@cyberwizzard.ath.cx> wrote:
> Update: Didn't help - but this time I was connected to a console so I
> could see the bootup and I get this:
> "SIOCSIFFLAGS: Cannot assign requested address"
>
> Strange thing is that I have multiple aliasses and only 3 errors...
>
> I tried Google with this error and I see lots of people with Ubuntu
> running into that one but CentOS hasn't got the same scripts so their
> solution won't help me.

Could you post the output of: head -20 /etc/sysconfig/network-scripts/ifcfg-eth0*

Cheers
Tony
--
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-13-2008, 02:12 PM
Berend Dekens
 
Default Virtual NICs (aliases like eth0:1) won't come up after reboot

Tony Mountifield wrote:

Could you post the output of: head -20 /etc/sysconfig/network-scripts/ifcfg-eth0*

Cheers
Tony

[root@hagrid network-scripts]# head -20
/etc/sysconfig/network-scripts/ifcfg-eth0*

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=87.233.3.255
HWADDR=00:0C:29:269:E6
IPADDR=87.233.3.247
NETMASK=255.255.255.240
NETWORK=87.233.3.240
ONBOOT=yes
GATEWAY=87.233.3.241
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

And for good measure the dump of our 2nd aliased NIC:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=87.233.68.193
TYPE=Ethernet
DEVICE=eth0:2
BOOTPROTO=none
NETMASK=255.255.255.224
IPADDR=87.233.68.195
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes

Note that I removed the previously added ONBOOT param as I stated before
because according to the docs it was not allowed (and it didn't made any
difference).


Cheers,
Berend

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-13-2008, 03:17 PM
 
Default Virtual NICs (aliases like eth0:1) won't come up after reboot

In article <491C43D5.8010002@cyberwizzard.nl>,
Berend Dekens <berend@cyberwizzard.ath.cx> wrote:
> Tony Mountifield wrote:
> > Could you post the output of: head -20 /etc/sysconfig/network-scripts/ifcfg-eth0*
> >
> > Cheers
> > Tony
> >
> [root@hagrid network-scripts]# head -20
> /etc/sysconfig/network-scripts/ifcfg-eth0*
> # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
> DEVICE=eth0
> BOOTPROTO=none
> BROADCAST=87.233.3.255
> HWADDR=00:0C:29:269:E6
> IPADDR=87.233.3.247
> NETMASK=255.255.255.240
> NETWORK=87.233.3.240
> ONBOOT=yes
> GATEWAY=87.233.3.241
> TYPE=Ethernet
> USERCTL=no
> IPV6INIT=no
> PEERDNS=yes
>
> And for good measure the dump of our 2nd aliased NIC:
> # Please read /usr/share/doc/initscripts-*/sysconfig.txt
> # for the documentation of these parameters.
> GATEWAY=87.233.68.193
> TYPE=Ethernet
> DEVICE=eth0:2
> BOOTPROTO=none
> NETMASK=255.255.255.224
> IPADDR=87.233.68.195
> USERCTL=no
> IPV6INIT=no
> PEERDNS=yes
> ONPARENT=yes
>
> Note that I removed the previously added ONBOOT param as I stated before
> because according to the docs it was not allowed (and it didn't made any
> difference).

Hmmm, in a previous post you said you had multiple aliases and three errors.
But above, you have only posted one main device and one alias. Are they ones
that succeed of fail?

The reason I said to use "head -20" and "ifcfg-eth0*" was that if you used
that command literally, it would (a) output ALL eth0 aliases, and (b) prepend
each one automatically with a filename header, assuming there is more than
one file.

It's difficult to suggest what the problem might be unless you list EVERY
interface and alias, showing at least the IP and netmask information for
each one. Otherwise we are just guessing.

When you get a moment, please read right through the following page:
http://www.catb.org/~esr/faqs/smart-questions.html

Cheers
Tony
--
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-13-2008, 04:42 PM
Berend Dekens
 
Default Virtual NICs (aliases like eth0:1) won't come up after reboot

Tony Mountifield wrote:

Hmmm, in a previous post you said you had multiple aliases and three errors.
But above, you have only posted one main device and one alias. Are they ones
that succeed of fail?

Every one of them fails except eth0 itself (which is good or I would
have locked myself out).

The reason I said to use "head -20" and "ifcfg-eth0*" was that if you used
that command literally, it would (a) output ALL eth0 aliases, and (b) prepend
each one automatically with a filename header, assuming there is more than
one file.

I used the GUI to create the interfaces: the files are not called
'ifcfg-eth0:1' etc but they are named. But I get your point so heres the
full listing:


[root@hagrid ~]# cat /etc/sysconfig/network-scripts/ifcfg-*
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE=eth0:1
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=10.1.1.128
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=87.233.68.193
TYPE=Ethernet
DEVICE=eth0:2
BOOTPROTO=none
NETMASK=255.255.255.224
IPADDR=87.233.68.195
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0:3
BOOTPROTO=none
IPADDR=87.233.68.194
BROADCAST=87.233.68.223
NETMASK=255.255.255.224
NETWORK=87.233.68.192
GATEWAY=87.233.68.193
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes
ONBOOT=yes

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=87.233.68.193
TYPE=Ethernet
DEVICE=eth0:4
BOOTPROTO=none
NETMASK=255.255.255.224
IPADDR=87.233.68.196
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes
ONBOOT=yes

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=87.233.68.193
TYPE=Ethernet
DEVICE=eth0:5
BOOTPROTO=none
NETMASK=255.255.255.224
IPADDR=87.233.68.197
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes
ONBOOT=yes

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=87.233.3.255
HWADDR=00:0C:29:269:E6
IPADDR=87.233.3.247
NETMASK=255.255.255.240
NETWORK=87.233.3.240
ONBOOT=yes
GATEWAY=87.233.3.241
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0

# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

I went over the configs a couple of times and the last attempt to
restart one interface using ifup and ifdown did not show that error (and
the interfaces come up) - a full networking restart gives those errors
and once again the aliasses don't come up. Even though the networking
script says [OK] for each interface... I'm confused...


Berend
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org