Bug 52882 - iup/ifdown fail for multi-homed interfaces
Summary: iup/ifdown fail for multi-homed interfaces
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: initscripts
Version: roswell
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL: http://www.port25.com/updown.text
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-30 14:09 UTC by J|rgen Christoffel
Modified: 2014-03-17 02:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-09-02 11:44:54 UTC
Embargoed:


Attachments (Terms of Use)
fixes for alias support (2.30 KB, patch)
2001-09-04 03:56 UTC, Bill Nottingham
no flags Details | Diff

Description J|rgen Christoffel 2001-08-30 14:09:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.6-3.1 i686)

Description of problem:
ifup/ifdown fail to manage interface eth0:1 properly. Using ifup/ifdown on
eth0 alone will manage both eth0 AND eth0:1 at once.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. create /etc/sysconfig/network-scripts/ifcfg-eth0:1 and reboot
2. try ifdown eth0:1
3. try ifup eth0:1
	

Actual Results:  [root@ginger network-scripts]# ifdown eth0:1
Cannot find device "eth0:1"

[root@ginger network-scripts]# ifup eth0:1
Device "eth0:1" does not exist.
Cannot find device "eth0:1"
Error adding address 129.26.248.75 for eth0:1.
WARNING: interface is ignored: No such device
bind: Cannot assign requested address
SIOCADDRT: No such device


Expected Results:  ifup/down should manage eth0:1 independently from eth0
and both should work as they did in earlier releases.

Additional info:

Comment 1 Bill Nottingham 2001-08-30 15:27:04 UTC
What do your ifcfg-eth* look like?

Comment 2 J|rgen Christoffel 2001-08-30 18:51:22 UTC
The contents of the ifcfg-eth* is listed on the page reachable via the URL along
with a detailed log of what happens during ifup/ifdown.

Contents of /etc/sysconfig/network-scripts/ifcfg-eth0 is

DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.13.255.255
IPADDR=10.13.7.1
NETMASK=255.255.0.0
NETWORK=10.13.0.0
ONBOOT=yes

Contents of /etc/sysconfig/network-scripts/ifcfg-eth0:1 is

DEVICE=eth0:1
BOOTPROTO=static
BROADCAST=129.26.248.79
NETWORK=129.26.248.72
NETMASK=255.255.255.248
IPADDR=129.26.248.75
ONBOOT=yes
USERCTL=no


Comment 3 Pekka Savola 2001-09-02 11:44:49 UTC
Problem perhaps is that /sbin/ip should look for interfaces under 'eth0' not as 'eth0:X' itself.  A line is like:

6: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:02:b3:1a:e2:bf brd ff:ff:ff:ff:ff:ff
    inet 193.94.160.1/24 brd 193.94.160.255 scope global eth0
    inet 193.94.160.2/24 brd 193.94.160.255 scope global secondary eth0:0

where with old ifconfig, this would have been interface eth0:0..

Comment 4 Bill Nottingham 2001-09-04 03:51:54 UTC
Will be fixed in 6.37-1. relevant diff attached.


Comment 5 Bill Nottingham 2001-09-04 03:56:43 UTC
Created attachment 30774 [details]
fixes for alias support


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