Bug 3835
Summary: | ifconfig messes up removing aliased interfaces | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | dharris |
Component: | kernel | Assignee: | Michael K. Johnson <johnsonm> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | bcrl, milos, ross1 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-04-03 04:30:21 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
dharris
1999-06-30 19:12:04 UTC
I would think that that's the desired behavior; having an alias for a non-existent device doesn't seem to make much sense. (Perhaps it should print a warning that it's removing the aliases, though...) I don't understand. Where is the alias for the non-existent device? Let me quickly summarize the text in my initial report: enabled interfaces: eth0, lo turn on eth0:0 turn on eth0:23 enabled interfaces: eth0, eth0:0, eth0:23, lo turn off eth0:0 enabled interfaces: eth0, lo Seems to me that eth0:23 should still be running at the end of the test, as no one turned it off and its base device is still there. Whoops, sorry, misread that as 'remove eth0'. What kernel are you running? I've seen the problem on your kernel-2.2.5-15 package and on Mandrake's kernel-2.2.9-19mdk package. (BTW, that Mandrake kernel was transplanted into a Red Hat 6.0 system, so it was using the exact same ifconfig package.) I had thought the problem was something weird with non-consecutive aliased numbers, but I just did the following test: configured interfaces: eth0, lo ifconfig eth0:0 192.168.40.1 ifconfig eth0:1 192.168.40.2 configured interfaces: eth0, eth0:0, eth0:1, lo ifconfig eth0:0 down configured interfaces: eth0, lo Im running into this problem as well as several others. I've tried multiple kernels as well as net-tools 1.53 and havent found an acceptable solutions. It seems from my testing that if I try to down the lowest logical interface, it deletes all logical interfaces. I've even found with net-tools 1.52-2 update rpm from redhat, and when IPX protocl is compiling into the kernel, even the eth0 physical interface is downed too!!! Stock 1.46-1 rpm and net-tools 1.53 works on rh5.2 kernel 2.0.36. This was with ipx as a module, but it was loaded. On RH 6 with kernel 2.2.12, ifconfig eth0:0 down takes all the aliased interfaces down. With IPX compiled in, even eth0 goes down. net-tools 1.49 self-compiled does not remove eth0 in the same situation. *** Bug 6032 has been marked as a duplicate of this bug. *** The semantics underlying this problem are almost certainly in the kernel driver code. Changing the component to kernel ... *** Bug 20752 has been marked as a duplicate of this bug. *** It seems to be a bug in the linked list logic for storing the alias names. Removing the first alias name in the list incorrects removes (or loses) all alias names in the list. For example, add some aliases in this order: ifconfig eth0:1 10.1.1.1 ifconfig eth0:2 10.1.1.2 ifconfig eth0:3 10.1.1.3 ifconfig eth0:4 10.1.1.4 Then choose one and mark it as down. If you choose the first alias from the above order, that you added, (eth0:1) ifconfig will incorrect lose or remove all aliases for eth0. If you choose any of the others, besides the first alias that you added, ifconfig works correctly and removes only the one alias. The 2.4 kernel has a different mechanism for supporting aliases. See the ip command in newer releases. |