[Bug 352841] New: impossible to remove first alias of a interface when more aliases than one configured
https://bugzilla.novell.com/show_bug.cgi?id=352841 Summary: impossible to remove first alias of a interface when more aliases than one configured Product: openSUSE 10.3 Version: Final Platform: 64bit OS/Version: SLES 10 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: reitenbach@rapideye.de QAContact: qa@suse.de Found By: Customer when I configure multiple aliases on a network interface, and then later want to remove the first created alias, all aliases will be removed. When I remove any other alias, then only this alias I want to remove will be removed, without touching the other aliases. example: creating the aliases: ifconfig eth0 10.10.10.10 netmask 255.255.255.0 up ifconfig eth0:2 10.10.0.18 netmask 255.255.255.0 up ifconfig eth0:3 10.10.0.19 netmask 255.255.255.0 up ifconfig eth0:1 10.10.0.20 netmask 255.255.255.0 up ifconfig eth0:0 10.10.0.17 netmask 255.255.255.0 up ifconfig eth0:4 10.10.0.16 netmask 255.255.255.0 up when I then want to remove alias e.g. eth0:1, without affecting the other aliases, then there is no problem, when issuing command: ifconfig eth0:1 down then only this alias is gone. But when I want to remove the first created alias this way: ifconfig eth0:2 down then all aliases are gone. This is the same in opensuse 10.1, 10.2, 10.3 and SLESsp1. As this behavior is not documented in the ifconfig man page, for me this seems to be a bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c1 michal zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mzugec@novell.com --- Comment #1 from michal zugec <mzugec@novell.com> 2008-01-10 02:03:47 MST --- ifconfig is deprecated tool, you should use ip instead of it, especially for aliasses -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c2 Sebastian Reitenbach <reitenbach@rapideye.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Minor Summary|impossible to remove first alias of a interface |impossible to remove first alias of a interface |when more aliases than one configured |when more aliases than one configured when using | |ifconfig to remove the alias --- Comment #2 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-10 02:50:33 MST --- you are right, with the ip command it is working as expected. Maybe the manual page of the ifconfig command should receive an update, e.g. noting this behavior regarding aliases in the BUGS section, adding ip(8) to the see also section and making a note that ifconfig is deprecated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User mzugec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c3 michal zugec <mzugec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |ms@novell.com --- Comment #3 from michal zugec <mzugec@novell.com> 2008-01-10 03:04:22 MST --- reassigned to net-tools maintainer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c4 --- Comment #4 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-10 03:44:28 MST --- Created an attachment (id=190036) --> (https://bugzilla.novell.com/attachment.cgi?id=190036) script that shows the problem The script shows the exact problem, run it with ./start_webaliases.sh start to start up the aliases, and /start_webaliases.sh stop to stop them. The stop action will show error messages, as the first ip addr del removes all aliases. the commented out fields show it working correctly when no netmask is specified, but then strange netmasks/broadcasts are generated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c5 Sebastian Reitenbach <reitenbach@rapideye.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Minor |Major Summary|impossible to remove first alias of a interface |impossible to remove first alias of a interface |when more aliases than one configured when using|when more aliases than one configured to remove |ifconfig to remove the alias |the alias --- Comment #5 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-10 03:50:35 MST --- I figured out, that the ip utility behaves exactly the same way as ifconfig. In my test where I concluded it works with the ip utility I did not had specified a correct netmask. Without specifying a netmask when creating the alias, then it is possible to shutdown the first ip alias without affecting otherwise when the alias is created with a netmask then when shutting down the first alias, all the other aliases will disapear too. Tested the script on SLES10SP1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c6 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal Status|NEW |NEEDINFO Info Provider| |hvogel@novell.com Summary|impossible to remove first alias of a interface |net-tools: failed to remove first alias from a |when more aliases than one configured to remove |list when netmask is set on iface |the alias | --- Comment #6 from Marcus Schaefer <ms@novell.com> 2008-01-10 06:03:59 MST --- thanks for the report. Unfortunately I don't have time to investigate this now. Could you confirm that this problem also exists on 10.3 ? Henne if you want this to be fixed for SLES SP2 I think someone else should takeover this one. I'm busy with kiwi (lenovo,slepos,thin-client-SDK,system imaging workshop, OSMB conference, fosdem...) thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c7 Sebastian Reitenbach <reitenbach@rapideye.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|hvogel@novell.com | --- Comment #7 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-10 06:19:53 MST --- I just run the script on a opensuse 10.3 x86_64 and it showed the same behavior as on SLES10SP1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c8 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hvogel@novell.com --- Comment #8 from Marcus Schaefer <ms@novell.com> 2008-01-10 07:26:43 MST --- thanks for testing. Henne do you see my comment #6 thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #190036|application/x-shellscript |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c9 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hvogel@novell.com Status|NEEDINFO |RESOLVED Info Provider|hvogel@novell.com | Resolution| |WONTFIX --- Comment #9 from Hendrik Vogelsang <hvogel@novell.com> 2008-01-11 04:19:04 MST --- As this is clearly an upstream problem (or implementation flaw) you should report it there and not to us please. As soon as the maintainer fixed it we will pick it up. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c10 --- Comment #10 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-11 04:28:33 MST --- I'd be happy to report upstream, but who is responsible for ifconfig/ip? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User lmb@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c11 Lars Marowsky-Bree <lmb@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lmb@novell.com --- Comment #11 from Lars Marowsky-Bree <lmb@novell.com> 2008-01-11 08:37:52 MST --- This only seems to happen when a primary address is removed; all depending secondary addresses then are also removed. Removing secondary addresses one-by-one is fine. The example in the initial description doesn't reproduce for me, but the script does. It seems to occur when a _new_ subnet is added via an alias (which gets added as a primary/global address); then all further addresses from that subnet will be secondary, and removing the primary stops these. The first example shouldn't show this behaviour, as eth0 itself is never brought down. The script though does add an entirely new network range. Normally, aliases are from the same subnet as the primary address, and then do not show this behaviour. No work-around exists, I tried various ip flags. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User dmuhamedagic@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c12 Dejan Muhamedagic <dmuhamedagic@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmuhamedagic@novell.com --- Comment #12 from Dejan Muhamedagic <dmuhamedagic@novell.com> 2008-01-11 09:04:39 MST --- (In reply to comment #10 from Sebastian Reitenbach)
I'd be happy to report upstream, but who is responsible for ifconfig/ip?
Looks like it is Philip Blundell <philb@gnu.org> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=352841 User reitenbach@rapideye.de added comment https://bugzilla.novell.com/show_bug.cgi?id=352841#c13 --- Comment #13 from Sebastian Reitenbach <reitenbach@rapideye.de> 2008-01-11 09:18:34 MST --- Ah, ok, I'll mail him, pointing him to this bug report here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com