Bug 97333

Summary: Downing an interface alias downs another interface with same subnet, network and broadcast address
Product: [Retired] Red Hat Linux Reporter: Dhyanesh Ramaiya <dhyanesh>
Component: net-toolsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-19 12:06:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dhyanesh Ramaiya 2003-06-13 07:29:26 UTC
Description of problem: Downing an interface alias with different IP but same 
network, broadcast and subnet addresses, downs another interface alias with 
with the same network, broadcast and subnet addresses


Version-Release number of selected component (if applicable): net-tools-1.60-12


How reproducible: 


Steps to Reproduce:
1. Create two interface aliases

2. Let the network, broadcast and subnet addresses be the same for both the 
interfaces (but different IP addresses)

#Interface eth1:1
DEVICE=eth1:1
BROADCAST=1.2.3.223
IPADDR=1.2.3.193
NETMASK=255.255.255.224
NETWORK=1.2.3.192
ONBOOT=yes
TYPE=Ethernet

#Interface eth1:2
DEVICE=eth1:2
BOOTPROTO=static
NETMASK=255.255.255.224
NETWORK=1.2.3.192
IPADDR=1.2.3.196
BROADCAST=1.2.3.223
ONBOOT=yes

3. The IP subnet begins at 1.2.3.192. Issue "ifconfig eth1:2 down" and it will 
also down eth1:1

    
Actual results: "ifconfig eth1:2 down" downs interface eth1:1 as well. 


Expected results: Downing eth1:2 should not down eth1:1


Additional info:

Comment 1 Phil Knirsch 2003-08-19 12:06:12 UTC
I think thats to be expected: The alias interfaces actually refere to the same
physical interface, so if you put that down all aliased interfaces go down, too.

Also i think this is not a problem of the tool but of the kernel (if at all).

Read ya, Phil

Comment 2 Phil Knirsch 2003-08-19 12:18:34 UTC
Additionally, i just asked on of our kernel developers: The 'old' style aliasing
(which you are using) is actually really handled as separate interfaces, so
ifconfig down of any of those interfaces only shuts down that interface. I just
tested it on our current Beta, but the behaviour was like that since 2.4.0.

So i can't reproduce your problem.

It's different if you use the new aliasing method via the ip tool. There you can
assigne multiple ip addresses to a single interface, and of course if you shut
down that interface all assigned ip addresses will be unreachable.

Read ya, Phil