Bug 206696 - initscripts activate ONBOOT=no ethernet aliases (!)
Summary: initscripts activate ONBOOT=no ethernet aliases (!)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL: http://www.citycarshare.org/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-15 19:15 UTC by Bryce Nesbitt
Modified: 2014-03-17 03:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-15 20:05:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bryce Nesbitt 2006-09-15 19:15:29 UTC
I have a primary eth0, and eight alaises (eth0:0-eth0:7).

If I set ONBOOT=no for the aliases, it is INCORECTLY brought up on reboot.

[root@14252-24879 network-scripts]# cat ifcfg-eth0
# Intel Corporation 82541GI/PI Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=216.93.188.133
NETMASK=255.255.255.240
GATEWAY=216.93.188.129

[root@14252-24879 network-scripts]# cat ifcfg-eth0:1
# Intel Corporation 82541GI/PI Gigabit Ethernet Controller
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=no
IPADDR=216.93.188.135
NETMASK=255.255.255.240
[root@14252-24879 network-scripts]# cat ifcfg-eth0:6

# Intel Corporation 82541GI/PI Gigabit Ethernet Controller
#DEVICE=eth0:6
#BOOTPROTO=static
#ONBOOT=no
#IPADDR=216.93.188.140
#NETMASK=255.255.255.240
[root@14252-24879 network-scripts]#


After boot I see:


[root@14252-24879 network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.133  Bcast:216.93.188.143  Mask:255.255.255.240
          inet6 addr: fe80::230:48ff:fe70:3a06/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:378 errors:0 dropped:0 overruns:0 frame:0
          TX packets:221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:39237 (38.3 KiB)  TX bytes:33943 (33.1 KiB)
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:0    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.134  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:1    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.135  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:2    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.136  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:3    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.137  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:4    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.138  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:5    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.139  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

eth0:7    Link encap:Ethernet  HWaddr 00:30:48:70:3A:06
          inet addr:216.93.188.141  Bcast:216.93.188.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0xc400 Memory:fd8c0000-fd8e0000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:678 (678.0 b)  TX bytes:678 (678.0 b)

Comment 1 Bryce Nesbitt 2006-09-15 19:21:12 UTC
Marking as priority HIGH, because IP address conflicts can take down critical
services (the mess can get really big really quick).

Note:

Manually running ./ifup eth0:5 boot
does the right thing.  And the initscript looks fine too.

But rebooting is the acid test, and that's simply not working as expected.  I'm
not sure the exact code path.


Comment 2 Bryce Nesbitt 2006-09-15 19:21:39 UTC
I'm hoping for a patch to fc5, available via yum...

Comment 3 Bill Nottingham 2006-09-15 19:32:51 UTC
ONBOOT is not a valid option for aliases - you want ONPARENT.

Comment 4 Bryce Nesbitt 2006-09-15 19:59:39 UTC
Then convert it to a suggestion:
   ONBOOT=no
Is more orthoganal, and easier for sysadmins to grasp.


Where is ONPARENT documented?
    man ifup
Did not work.

# This script goes out of its way to arrive at the configuration of ip
# aliases described in the ifcfg-$DEV:* and ifcfg-$DEV-range* files from
# whatever existing configuration it may be given:.

Comment 5 Bill Nottingham 2006-09-15 20:05:11 UTC
It's documented in sysconfig.txt.

Comment 6 Bryce Nesbitt 2006-09-15 20:34:27 UTC
ok, found it, thank you.


Note You need to log in before you can comment on or make changes to this bug.