Debian Bug report logs -
#652573
enable routing via non-local gateways in dhcp client script
Reported by: Petter Reinholdtsen <pere@hungry.com>
Date: Sun, 18 Dec 2011 18:18:02 UTC
Severity: wishlist
Found in version busybox/1:1.17.1-8
Fixed in version busybox/1:1.22.0-8
Done: Christian Perrier <bubulle@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, holger@layer-acht.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sun, 18 Dec 2011 18:18:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Petter Reinholdtsen <pere@hungry.com>:
New Bug report received and forwarded. Copy sent to holger@layer-acht.org, Debian Install System Team <debian-boot@lists.debian.org>.
(Sun, 18 Dec 2011 18:18:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: busybox-udeb
Version: 1:1.17.1-8
The Debian/Squeeze installer fail with /32 netmasks provided from DHCP.
From <URL: https://bugs.busybox.net/show_bug.cgi?id=4604 >:
debian stable busybox udhcp client does not support /32
netmasks. Changing the netmask to <32 works.
Debian boots with busybox udhcp and the DHCP configuration fails.
Once Debian is booted and running with the isc dhclient, the
configuration works ok.
I am told this bug make it impossible or very hard to install
Debian/Squeeze in some cloud environments.
--
Happy hacking
Petter Reinholdtsen
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sun, 18 Dec 2011 18:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sun, 18 Dec 2011 18:27:05 GMT) (full text, mbox, link).
Message #10 received at 652573@bugs.debian.org (full text, mbox, reply):
On 18.12.2011 22:16, Petter Reinholdtsen wrote:
>
> Package: busybox-udeb
> Version: 1:1.17.1-8
>
> The Debian/Squeeze installer fail with /32 netmasks provided from DHCP.
>>From <URL: https://bugs.busybox.net/show_bug.cgi?id=4604 >:
>
> debian stable busybox udhcp client does not support /32
> netmasks. Changing the netmask to <32 works.
The /32 netmask for a host is at least non-standard. I'm not sure
it is ever possible to _use_ such a netmask on an ethernet interface
on any other system but linux - it definitely is impossible to use
on windows, not sure about *bsd and others.
> Debian boots with busybox udhcp and the DHCP configuration fails.
> Once Debian is booted and running with the isc dhclient, the
> configuration works ok.
>
> I am told this bug make it impossible or very hard to install
> Debian/Squeeze in some cloud environments.
I don't know much about cloud enviromnents. But it appears it is best
to use standard setup, not resorting to /32 netmasks and peer-to-peer
interfaces on ethernet.
Thanks,
/mjt
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sun, 18 Dec 2011 18:30:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sun, 18 Dec 2011 18:30:09 GMT) (full text, mbox, link).
Message #15 received at 652573@bugs.debian.org (full text, mbox, reply):
severity 652573 wishlist
thanks
On 18.12.2011 22:23, Michael Tokarev wrote:
> On 18.12.2011 22:16, Petter Reinholdtsen wrote:
>>
>> Package: busybox-udeb
>> Version: 1:1.17.1-8
>>
>> The Debian/Squeeze installer fail with /32 netmasks provided from DHCP.
>> >From <URL: https://bugs.busybox.net/show_bug.cgi?id=4604 >:
>>
>> debian stable busybox udhcp client does not support /32
>> netmasks. Changing the netmask to <32 works.
>
> The /32 netmask for a host is at least non-standard. I'm not sure
> it is ever possible to _use_ such a netmask on an ethernet interface
> on any other system but linux - it definitely is impossible to use
> on windows, not sure about *bsd and others.
And since this is non-standard, downgrading the severity of this
bug to wishlist. Most likely will be also tagged as wontfix.
Thanks,
/mjt
Severity set to 'wishlist' from 'normal'
Request was from Michael Tokarev <mjt@tls.msk.ru>
to control@bugs.debian.org.
(Sun, 18 Dec 2011 18:30:10 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 20 Dec 2011 16:18:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Conrad Wood <cnw@conradwood.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 20 Dec 2011 16:18:03 GMT) (full text, mbox, link).
Message #24 received at 652573@bugs.debian.org (full text, mbox, reply):
as the original reporter of the issue, /32 instructs linux (and windows
2000+ and MacOS) to send all traffic to the gateway, never local.
This is actually fairly common in switched & shared datacenters and
avoids the need for private ip-addresses between two hops, or worse
using valuable IPv4 addresses for routing hops.
Noteworthy is that isc-dhcp does The Right Thing in my opinion, by
passing any semantically correct netmask on to the underlying layer
without logical test. That should be up to the network layer wether or
not it can digest it.
uDHCP seems to filter it prematurely.
Whilst setting IP & netmask manually works around this issue it is
inconvenient for users.
And yes... it is a bit of a hack that became common rather than one that
was designed and RFC'ed afaik ;-)
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sat, 02 Jun 2012 15:21:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sat, 02 Jun 2012 15:21:08 GMT) (full text, mbox, link).
Message #29 received at 652573@bugs.debian.org (full text, mbox, reply):
On 18.12.2011 22:28, Michael Tokarev wrote:
> On 18.12.2011 22:23, Michael Tokarev wrote:
>> On 18.12.2011 22:16, Petter Reinholdtsen wrote:
>>>
>>> Package: busybox-udeb
>>> Version: 1:1.17.1-8
>>>
>>> The Debian/Squeeze installer fail with /32 netmasks provided from DHCP.
>>> >From <URL: https://bugs.busybox.net/show_bug.cgi?id=4604 >:
>>>
>>> debian stable busybox udhcp client does not support /32
>>> netmasks. Changing the netmask to <32 works.
>>
>> The /32 netmask for a host is at least non-standard. I'm not sure
>> it is ever possible to _use_ such a netmask on an ethernet interface
>> on any other system but linux - it definitely is impossible to use
>> on windows, not sure about *bsd and others.
Peter, can you give some more details please, maybe some
hints on how to setup the test environment / dhcp server?
Looking at the dhcp client code in busybox - either current 1.20
or squeeze 1.17 version, I don't see where it might not work.
The /32 (255.255.255.255) netmask should Just Work. So in
order to do something with this bugreport (as opposed to just
forgetting about it entirely), I need some reproducer/verifier...
Thanks,
/mjt
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sat, 02 Jun 2012 18:09:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sat, 02 Jun 2012 18:09:06 GMT) (full text, mbox, link).
Message #34 received at 652573@bugs.debian.org (full text, mbox, reply):
[Michael Tokarev]
> Peter, can you give some more details please, maybe some hints on how
> to setup the test environment / dhcp server?
Sorry, I do not have more details any more. If I remember correctly,
the problem was with installing Debian on virtual machines where the
installation environment only provided one IP address to the virtual
ethernet and used this to set the IP using DHCP.
Probably better to ask Conrad Wood for more details. Cc to him.
--
Happy hacking
Petter Reinholdtsen
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sat, 02 Jun 2012 20:18:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sat, 02 Jun 2012 20:18:03 GMT) (full text, mbox, link).
Message #39 received at 652573@bugs.debian.org (full text, mbox, reply):
On 02.06.2012 23:59, Conrad Wood wrote:
[]
> In some "cloud" environments, including ours, we configure an ethernet device with a single /32 IP Address. Say, for example 5.6.7.8/32. The Default Gateway is, for example, 9.10.11.12. The linux kernel and BSD happily work as desired and send out an arp request out of the ethernet device and route _everything_ to the default gateway.
> Configuring this manually is straightforward and works as desired.
> Using the ISC-DHCP client also works as desired. It picks up IP, Netmaks and gateway perfectly well.
> However, in the installer, with the busybox dhcp client, it stalls and claims it is unable to configure the network interfaces. Anything _apart_ from /32 (say /31, /30 etc.) works ok. But then the gateway won't be reachable, as the kernel then tries to do 'propper(?)' routing instead of just forwarding the packets.
Did you try using busybox dhcp client on an already
installed system, as opposed to the debian installer?
I just tried - dnsmasq as dhcp server, and squeeze busybox -
it accepts the /32 netmask just fine and configures the
interface accordingly. I had to overwrite "netmask" option
on the server, setting it explicitly, and I verified with
tcpdump that the server sends correct DHCP reply with the
right netmask.
But I'm not actually sure how debian installer configures
the network...
Thanks,
/mjt
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sat, 02 Jun 2012 20:18:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Conrad Wood <cnw@conradwood.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sat, 02 Jun 2012 20:18:05 GMT) (full text, mbox, link).
Message #44 received at 652573@bugs.debian.org (full text, mbox, reply):
On 2 Jun 2012, at 20:04, Petter Reinholdtsen wrote:
>
> [Michael Tokarev]
>> Peter, can you give some more details please, maybe some hints on how
>> to setup the test environment / dhcp server?
>
> Sorry, I do not have more details any more. If I remember correctly,
> the problem was with installing Debian on virtual machines where the
> installation environment only provided one IP address to the virtual
> ethernet and used this to set the IP using DHCP.
>
> Probably better to ask Conrad Wood for more details. Cc to him.
> --
> Happy hacking
> Petter Reinholdtsen
>
Hi Petter,
In some "cloud" environments, including ours, we configure an ethernet device with a single /32 IP Address. Say, for example 5.6.7.8/32. The Default Gateway is, for example, 9.10.11.12. The linux kernel and BSD happily work as desired and send out an arp request out of the ethernet device and route _everything_ to the default gateway.
Configuring this manually is straightforward and works as desired.
Using the ISC-DHCP client also works as desired. It picks up IP, Netmaks and gateway perfectly well.
However, in the installer, with the busybox dhcp client, it stalls and claims it is unable to configure the network interfaces. Anything _apart_ from /32 (say /31, /30 etc.) works ok. But then the gateway won't be reachable, as the kernel then tries to do 'propper(?)' routing instead of just forwarding the packets.
Please let me know if you need more information. I can provide a remote console to a Virtual Machine where this problem is reproducible, if that helps.
Conrad
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Sat, 02 Jun 2012 20:48:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Conrad Wood <cnw@profitbricks.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Sat, 02 Jun 2012 20:48:02 GMT) (full text, mbox, link).
Message #49 received at 652573@bugs.debian.org (full text, mbox, reply):
On 2 Jun 2012, at 22:14, Michael Tokarev wrote:
> On 02.06.2012 23:59, Conrad Wood wrote:
> []
>> In some "cloud" environments, including ours, we configure an ethernet device with a single /32 IP Address. Say, for example 5.6.7.8/32. The Default Gateway is, for example, 9.10.11.12. The linux kernel and BSD happily work as desired and send out an arp request out of the ethernet device and route _everything_ to the default gateway.
>> Configuring this manually is straightforward and works as desired.
>
>> Using the ISC-DHCP client also works as desired. It picks up IP, Netmaks and gateway perfectly well.
>
>> However, in the installer, with the busybox dhcp client, it stalls and claims it is unable to configure the network interfaces. Anything _apart_ from /32 (say /31, /30 etc.) works ok. But then the gateway won't be reachable, as the kernel then tries to do 'propper(?)' routing instead of just forwarding the packets.
>
> Did you try using busybox dhcp client on an already
> installed system, as opposed to the debian installer?
>
> I just tried - dnsmasq as dhcp server, and squeeze busybox -
> it accepts the /32 netmask just fine and configures the
> interface accordingly. I had to overwrite "netmask" option
> on the server, setting it explicitly, and I verified with
> tcpdump that the server sends correct DHCP reply with the
> right netmask.
>
> But I'm not actually sure how debian installer configures
> the network...
>
> Thanks,
>
> /mjt
>
Hm, I believe we did. +CC Jens Ott, our network guru, I think he did try. Let's see what he has to say about that ;)
Conrad
Conrad Wood
(Deputy CTO, Head of Research & Innovations)
ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
Office: +49 30 51 64 09 21
DDI: +49 30 51 300 021
Email: conrad.wood@profitbricks.com
URL: http://www.profitbricks.com/
Sitz der Gesellschaft: Berlin
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B.
Geschäftsführer: Andreas Gauger, Achim Weiss
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 10:21:18 GMT) (full text, mbox, link).
Acknowledgement sent
to Jens Ott - Profitbricks <jens.ott@profitbricks.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 10:21:23 GMT) (full text, mbox, link).
Message #54 received at 652573@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Michael,
Conrad,
as far as I am aware, the problem is NOT the dhcp-client of busybox
itself but the hook-script used in debian. Find attached a hook-script
which I use in my home-brewn rescue and which used to work also with
/32 (sorry don't have an environment to test at hand, so I could not
proove). So IMHO actually only the hook-script in debian is screwed up.
BR
Jens
On 02.06.2012 22:26, Conrad Wood wrote:
>
> On 2 Jun 2012, at 22:14, Michael Tokarev wrote:
>
>> On 02.06.2012 23:59, Conrad Wood wrote: []
>>> In some "cloud" environments, including ours, we configure an
>>> ethernet device with a single /32 IP Address. Say, for example
>>> 5.6.7.8/32. The Default Gateway is, for example, 9.10.11.12.
>>> The linux kernel and BSD happily work as desired and send out
>>> an arp request out of the ethernet device and route
>>> _everything_ to the default gateway. Configuring this manually
>>> is straightforward and works as desired.
>>
>>> Using the ISC-DHCP client also works as desired. It picks up
>>> IP, Netmaks and gateway perfectly well.
>>
>>> However, in the installer, with the busybox dhcp client, it
>>> stalls and claims it is unable to configure the network
>>> interfaces. Anything _apart_ from /32 (say /31, /30 etc.) works
>>> ok. But then the gateway won't be reachable, as the kernel then
>>> tries to do 'propper(?)' routing instead of just forwarding the
>>> packets.
>>
>> Did you try using busybox dhcp client on an already installed
>> system, as opposed to the debian installer?
>>
>> I just tried - dnsmasq as dhcp server, and squeeze busybox - it
>> accepts the /32 netmask just fine and configures the interface
>> accordingly. I had to overwrite "netmask" option on the server,
>> setting it explicitly, and I verified with tcpdump that the
>> server sends correct DHCP reply with the right netmask.
>>
>> But I'm not actually sure how debian installer configures the
>> network...
>>
>> Thanks,
>>
>> /mjt
>>
>
> Hm, I believe we did. +CC Jens Ott, our network guru, I think he
> did try. Let's see what he has to say about that ;)
>
> Conrad
>
>
>
>
> Conrad Wood (Deputy CTO, Head of Research & Innovations)
>
> ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin
>
> Office: +49 30 51 64 09 21 DDI: +49 30 51 300 021 Email:
> conrad.wood@profitbricks.com URL: http://www.profitbricks.com/
> Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht
> Charlottenburg, HRB 125506 B. Geschäftsführer: Andreas Gauger,
> Achim Weiss
>
>
[udhcp-script.tpl (application/vnd.groove-tool-template, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 16:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 16:15:03 GMT) (full text, mbox, link).
Message #59 received at 652573@bugs.debian.org (full text, mbox, reply):
retitle 652573 busybox ip addr add ip.add.re.ss/32 does not work
thanks
On 05.06.2012 14:18, Jens Ott - Profitbricks wrote:
> Michael,
> Conrad,
>
> as far as I am aware, the problem is NOT the dhcp-client of busybox
> itself but the hook-script used in debian. Find attached a hook-script
> which I use in my home-brewn rescue and which used to work also with
> /32 (sorry don't have an environment to test at hand, so I could not
> proove). So IMHO actually only the hook-script in debian is screwed up.
Thank you Jens for the reply. Now I see what's going on.
It is not udhcpc, and not the udhcpc script either. It is busybox's
`ip' utility.
# busybox ip -4 add 192.168.77.10/32 dev dummy0
ip: invalid argument '192.168.77.10/32' to 'ip'
# busybox ip -4 add 192.168.77.10/31 dev dummy0
# _
And this is exactly what's used in the udeb script:
bound|renew)
ip -4 addr add "$ip/$subnet" dev "$interface"
So I'm retitling the bugreport accordingly, and will
try to fix it now, when it is clear where the problem
is, exactly.
Thank you very much guys for the help!
/mjt
Changed Bug title to 'busybox ip addr add ip.add.re.ss/32 does not work' from 'busybox-udeb: debian stable busybox udhcp client does not support /32 netmasks'
Request was from Michael Tokarev <mjt@tls.msk.ru>
to control@bugs.debian.org.
(Tue, 05 Jun 2012 16:15:11 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 16:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 16:39:03 GMT) (full text, mbox, link).
Message #66 received at 652573@bugs.debian.org (full text, mbox, reply):
On 05.06.2012 20:10, Michael Tokarev wrote:
[]
> It is not udhcpc, and not the udhcpc script either. It is busybox's
> `ip' utility.
>
> # busybox ip -4 add 192.168.77.10/32 dev dummy0
> ip: invalid argument '192.168.77.10/32' to 'ip'
And this is, ofcourse, a typo... I forgot to use `addr'.
> # busybox ip -4 add 192.168.77.10/31 dev dummy0
And this one I actually didn't run at all, hitting CtrlC
instead of Enter!
That's what happens when you do things when you're too
tired... :( Please excuse me for the noize. Digging
further, and I'll update the bugreports accordingly
(will restore it all back if I wont be able to find
the issue).
For now I see another _possible_ issue, which needs
to be verified in d-i: this is the place which adds
routes. Neither debian default.script nor your script
is able to add routes:
# busybox ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0
ip: RTNETLINK answers: No such process
The same happens when using route(8) utility. For this
to work, two routes should be added: first to the gateway
host, without the "via" part:
# busybox ip r add 192.168.77.11 dev dummy0
and second is the actual default (or whatever) route going
via that gateway, the regular way:
# busybox ip r add 10.255.0.0/28 via 192.168.77.11
("dev" is optional here, just like for the regular case).
Alternative is to use the keyword "onlink":
# ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0 onlink
but this does not work with busybox (yet).
I think this /32 case is worth to handle specially, using the
onlink or two route entries.
But I'm not sure this is the actual case the regular bug is
about: for the route to work with netmask != /32, the gateway
must be within the netmask, so if you specify, eg, 1.1.1.1/31
for the client, the router must be 1.1.1.0.
Does it look real?
But again, please note that the script provided by Jens should
fail exactly the same way! So... I guess it is not the issue... :(
Thank you for patience!
/mjt
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 16:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Jens Ott - Profitbricks <jens.ott@profitbricks.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 16:45:03 GMT) (full text, mbox, link).
Message #71 received at 652573@bugs.debian.org (full text, mbox, reply):
Michael
On 05.06.2012 18:36, Michael Tokarev wrote:
> On 05.06.2012 20:10, Michael Tokarev wrote:
> []
>> It is not udhcpc, and not the udhcpc script either. It is busybox's
>> `ip' utility.
>>
>> # busybox ip -4 add 192.168.77.10/32 dev dummy0
>> ip: invalid argument '192.168.77.10/32' to 'ip'
>
> And this is, ofcourse, a typo... I forgot to use `addr'.
>
>> # busybox ip -4 add 192.168.77.10/31 dev dummy0
>
> And this one I actually didn't run at all, hitting CtrlC
> instead of Enter!
>
> That's what happens when you do things when you're too
> tired... :( Please excuse me for the noize. Digging
> further, and I'll update the bugreports accordingly
> (will restore it all back if I wont be able to find
> the issue).
>
> For now I see another _possible_ issue, which needs
> to be verified in d-i: this is the place which adds
> routes. Neither debian default.script nor your script
> is able to add routes:
>
> # busybox ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0
> ip: RTNETLINK answers: No such process
That can't work. That's why my script sets the routers-variable to $ip
when netmask is "255.255.255.255".
Somewhere in ARP-RFC it is defined that a router shall respond to
WHO-HAS requests where requester and sender is the same address. So you
actually set default-route to the assigned IP on /32-Assignments.
>
> The same happens when using route(8) utility. For this
> to work, two routes should be added: first to the gateway
> host, without the "via" part:
>
> # busybox ip r add 192.168.77.11 dev dummy0
>
> and second is the actual default (or whatever) route going
> via that gateway, the regular way:
>
> # busybox ip r add 10.255.0.0/28 via 192.168.77.11
>
> ("dev" is optional here, just like for the regular case).
>
> Alternative is to use the keyword "onlink":
>
> # ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0 onlink
>
> but this does not work with busybox (yet).
>
> I think this /32 case is worth to handle specially, using the
> onlink or two route entries.
>
> But I'm not sure this is the actual case the regular bug is
> about: for the route to work with netmask != /32, the gateway
> must be within the netmask, so if you specify, eg, 1.1.1.1/31
> for the client, the router must be 1.1.1.0.
>
> Does it look real?
>
> But again, please note that the script provided by Jens should
> fail exactly the same way! So... I guess it is not the issue... :(
>
> Thank you for patience!
>
> /mjt
BR
Jens
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 16:51:15 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 16:51:15 GMT) (full text, mbox, link).
Message #76 received at 652573@bugs.debian.org (full text, mbox, reply):
On 05.06.2012 20:41, Jens Ott - Profitbricks wrote:
> Michael
[]
>> For now I see another _possible_ issue, which needs
>> to be verified in d-i: this is the place which adds
>> routes. Neither debian default.script nor your script
>> is able to add routes:
>>
>> # busybox ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0
>> ip: RTNETLINK answers: No such process
>
> That can't work.
Sure, because the "gateway" 192.168.77.11 isn't reachable
when the netmask is /32, this is exactly what I described
(quoted below).
> That's why my script sets the routers-variable to $ip
> when netmask is "255.255.255.255".
And this does not work to. I think you had a typo there.
See:
[ "$subnet" = "255.255.255.255" ] && routers=$ip
case "$1" in
renew|bound)
if [ -n "$router" ] ; then
for i in $router ; do
echo "Adding router $i"
route add default gw $i dev $interface metric $((metric++))
done
fi
..
Note you're setting "routeS" while use "routeR".
This is why it should not work exactly the same way
as current busybox's version!
> Somewhere in ARP-RFC it is defined that a router shall respond to
> WHO-HAS requests where requester and sender is the same address. So you
> actually set default-route to the assigned IP on /32-Assignments.
Well. In this case, the DHCP server should just set router
correctly, to be the same as client address, everything will
Just Work (tm).
This is a good piece of information, and why I asked for a
reproducer -- it didn't occur to me to use the same IP for
router and client's own ip address, even if I know it might
work exactly the way you describe by sending an ARP for everyhing.
The same can also be achieved by using not own's IP address
but all zeros, like,
ip route add default via 0.0.0.0 dev eth0
and this is even more correct, I think, this is equivalent
of not specifying "via" at all. Again, this can be set in
the DHCP server.
I thought about a different case, when you actually specify
some non-dummy gateway, it is not this case...
So, I guess, nothing should be fixed on the busybox/debian
side, do you not agree? :)
Thank you!
/mjt
>> The same happens when using route(8) utility. For this
>> to work, two routes should be added: first to the gateway
>> host, without the "via" part:
>>
>> # busybox ip r add 192.168.77.11 dev dummy0
>>
>> and second is the actual default (or whatever) route going
>> via that gateway, the regular way:
>>
>> # busybox ip r add 10.255.0.0/28 via 192.168.77.11
>>
>> ("dev" is optional here, just like for the regular case).
>>
>> Alternative is to use the keyword "onlink":
>>
>> # ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0 onlink
>>
>> but this does not work with busybox (yet).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#652573; Package busybox-udeb.
(Tue, 05 Jun 2012 20:30:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Jens Ott - Profitbricks <jens.ott@profitbricks.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 05 Jun 2012 20:30:03 GMT) (full text, mbox, link).
Message #81 received at 652573@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
as written in PM my submitted script was an very ancient version. Find
attached the current Version. What I did there is if netmask is /32 then
set a device-route for the gateway-ip.
Sorry for confusion.
BR
Jens
On 05.06.2012 18:50, Michael Tokarev wrote:
> On 05.06.2012 20:41, Jens Ott - Profitbricks wrote:
>> Michael
> []
>>> For now I see another _possible_ issue, which needs
>>> to be verified in d-i: this is the place which adds
>>> routes. Neither debian default.script nor your script
>>> is able to add routes:
>>>
>>> # busybox ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0
>>> ip: RTNETLINK answers: No such process
>>
>> That can't work.
>
> Sure, because the "gateway" 192.168.77.11 isn't reachable
> when the netmask is /32, this is exactly what I described
> (quoted below).
>
>> That's why my script sets the routers-variable to $ip
>> when netmask is "255.255.255.255".
>
> And this does not work to. I think you had a typo there.
> See:
>
> [ "$subnet" = "255.255.255.255" ] && routers=$ip
> case "$1" in
> renew|bound)
> if [ -n "$router" ] ; then
> for i in $router ; do
> echo "Adding router $i"
> route add default gw $i dev $interface metric $((metric++))
> done
> fi
> ..
>
>
> Note you're setting "routeS" while use "routeR".
>
> This is why it should not work exactly the same way
> as current busybox's version!
>
>> Somewhere in ARP-RFC it is defined that a router shall respond to
>> WHO-HAS requests where requester and sender is the same address. So you
>> actually set default-route to the assigned IP on /32-Assignments.
>
> Well. In this case, the DHCP server should just set router
> correctly, to be the same as client address, everything will
> Just Work (tm).
>
> This is a good piece of information, and why I asked for a
> reproducer -- it didn't occur to me to use the same IP for
> router and client's own ip address, even if I know it might
> work exactly the way you describe by sending an ARP for everyhing.
>
> The same can also be achieved by using not own's IP address
> but all zeros, like,
>
> ip route add default via 0.0.0.0 dev eth0
>
> and this is even more correct, I think, this is equivalent
> of not specifying "via" at all. Again, this can be set in
> the DHCP server.
>
> I thought about a different case, when you actually specify
> some non-dummy gateway, it is not this case...
>
> So, I guess, nothing should be fixed on the busybox/debian
> side, do you not agree? :)
>
> Thank you!
>
> /mjt
>
>>> The same happens when using route(8) utility. For this
>>> to work, two routes should be added: first to the gateway
>>> host, without the "via" part:
>>>
>>> # busybox ip r add 192.168.77.11 dev dummy0
>>>
>>> and second is the actual default (or whatever) route going
>>> via that gateway, the regular way:
>>>
>>> # busybox ip r add 10.255.0.0/28 via 192.168.77.11
>>>
>>> ("dev" is optional here, just like for the regular case).
>>>
>>> Alternative is to use the keyword "onlink":
>>>
>>> # ip r add 10.255.0.0/28 via 192.168.77.11 dev dummy0 onlink
>>>
>>> but this does not work with busybox (yet).
[udhcp-script.tpl (application/vnd.groove-tool-template, attachment)]
Changed Bug title to 'enable routing via non-local gateways in dhcp client script' from 'busybox ip addr add ip.add.re.ss/32 does not work'
Request was from <mjt@tls.msk.ru>
to control@bugs.debian.org.
(Mon, 09 Dec 2013 22:51:05 GMT) (full text, mbox, link).
Unset Bug forwarded-to-address
Request was from <mjt@tls.msk.ru>
to control@bugs.debian.org.
(Sun, 26 Jan 2014 18:39:14 GMT) (full text, mbox, link).
Added tag(s) pending.
Request was from <mjt@tls.msk.ru>
to control@bugs.debian.org.
(Sun, 03 Aug 2014 08:12:04 GMT) (full text, mbox, link).
Reply sent
to Christian Perrier <bubulle@debian.org>:
You have taken responsibility.
(Mon, 04 Aug 2014 05:36:09 GMT) (full text, mbox, link).
Notification sent
to Petter Reinholdtsen <pere@hungry.com>:
Bug acknowledged by developer.
(Mon, 04 Aug 2014 05:36:09 GMT) (full text, mbox, link).
Message #92 received at 652573-close@bugs.debian.org (full text, mbox, reply):
Source: busybox
Source-Version: 1:1.22.0-8
We believe that the bug you reported is fixed in the latest version of
busybox, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 652573@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated busybox package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 03 Aug 2014 12:38:57 +0200
Source: busybox
Binary: busybox busybox-static busybox-udeb busybox-syslogd udhcpc udhcpd
Architecture: source i386 all
Version: 1:1.22.0-8
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description:
busybox - Tiny utilities for small and embedded systems
busybox-static - Standalone rescue shell with tons of builtin utilities
busybox-syslogd - Provides syslogd and klogd using busybox
busybox-udeb - Tiny utilities for the debian-installer (udeb)
udhcpc - Provides the busybox DHCP client implementation
udhcpd - Provides the busybox DHCP server implementation
Closes: 652573
Changes:
busybox (1:1.22.0-8) unstable; urgency=medium
.
* Team upload
.
[ Michael Tokarev ]
* iproute-support-onelink-route-option-and-print-route-flags.patch
* udhcpc default script improvements:
- set interface up in deconfig, which allows udhcpc to operate on
initially down interface
- set mtu if given
- always use $subnet (it is always set)
- use (linux-specific) ip applet (since udhcpc is linux-specific anyway)
- only process one default route, since linux ignores all but the first
- only change default route if differ from actual
- special-case for /32 subnets, add host route to the router IP
(used heavily in clouds and other thin provisioning environments)
(partially Closes: #652573, for udhcpc)
- flush routes in deconfig too
- log messages to syslog
- various minor cleanups
* busybox-udeb: use ip route onlink in udhcpc script to handle /32 subnets
(Closes: #652573)
* update-deb-format-support.patch: patch from Guillem Jover to support
xz format in busybox dpkg (enabled only in busybox-static)
(same patch than the one in -7 but named differently)
Checksums-Sha1:
25db496f53b3c6ca2f0f56fae9cd4d48a42988bc 2204 busybox_1.22.0-8.dsc
486fb55c3efa71148fe07895fd713ea3a5ae343a 2218120 busybox_1.22.0.orig.tar.bz2
fe9a30eedf48476ae631f81c266efcd82f304126 51924 busybox_1.22.0-8.debian.tar.xz
5c03df7635c3a4f56de47aa4f7e1dccc81fd90af 363082 busybox_1.22.0-8_i386.deb
aebe12388fe2b502c9bc195c758aa4f9907c3369 766736 busybox-static_1.22.0-8_i386.deb
503d45767ffb6a15e220193636e23850be5be243 159428 busybox-udeb_1.22.0-8_i386.udeb
7b39d4bba29b95fb66456212742af909d0a86aaf 23052 busybox-syslogd_1.22.0-8_all.deb
22d353baf53a269427d4a1c73197537ee94087ba 21168 udhcpc_1.22.0-8_i386.deb
7d0cc1de3d25b1ac8783a4d1286e119db145e7e4 23892 udhcpd_1.22.0-8_i386.deb
Checksums-Sha256:
720a0a52be15280ec046196028c4f78a2628014e35c1baba4b661da4c747acff 2204 busybox_1.22.0-8.dsc
92f00cd391b7d5fa2215c8450abe2ba15f9d16c226e8855fb21b6c9a5b723a53 2218120 busybox_1.22.0.orig.tar.bz2
213722c2385bcbaac349e232e426a94e01410ad864265a130f4aab771a929f99 51924 busybox_1.22.0-8.debian.tar.xz
8fc71403dfbe02cae5fb9a3b631ab97b292ea00bd11b23ed601894abc092f105 363082 busybox_1.22.0-8_i386.deb
ede5c69ed6e50339ac6b73a673bb5e6148481db1215e7ece1d94c723ddc289e9 766736 busybox-static_1.22.0-8_i386.deb
e5146dbf723b76b0c116aae664436c662d45f2685ac50e17cf97e18c00fa4d49 159428 busybox-udeb_1.22.0-8_i386.udeb
f0dbc749463d3b653dabc37e5e9e7893e5ac8a2c4922a11a7e0c5903eb5b95d8 23052 busybox-syslogd_1.22.0-8_all.deb
6c13f0c64c68a63f6fe6ca34b6775f7f14dfb70445237e1d222915ab173caaaf 21168 udhcpc_1.22.0-8_i386.deb
d44fd632241242642958719369e1322c215a138e45aee9176095f1c3c7b7acc4 23892 udhcpd_1.22.0-8_i386.deb
Files:
4bf786116319eb754220ff048fa06399 363082 utils optional busybox_1.22.0-8_i386.deb
a1babcdc1419ca4a394c5694aa9e5a60 766736 shells extra busybox-static_1.22.0-8_i386.deb
b66b9601ad43f88ed918c65b5a5d5c50 159428 debian-installer extra busybox-udeb_1.22.0-8_i386.udeb
c3ef5cffe5e5838c13529c6e8e339de4 23052 utils optional busybox-syslogd_1.22.0-8_all.deb
0e22f4cc3c3a722d641741c24983348c 21168 net optional udhcpc_1.22.0-8_i386.deb
beee4ae1835c4af357efde180b274a58 23892 net optional udhcpd_1.22.0-8_i386.deb
57951bb00d52910b73bf55d55f9f3b94 2204 utils optional busybox_1.22.0-8.dsc
ac1881d1cdeb0729b22c663feaf1c663 2218120 utils optional busybox_1.22.0.orig.tar.bz2
0c7282f5ae4a94b75fb9f1efdf5a9f13 51924 utils optional busybox_1.22.0-8.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIVAwUBU98YBocvcCxNbiWoAQJ24w/9HQDG0IXfnl+4y11Lz2Ro+l5VHAfs+u6m
VW2fySa6L3OD8SVhQPBYTETpqlqI8HQmX7F4p11xe0E9ijDGTtWcAmYaVP5LUC0V
pnUQQ92clDC+g5qoriwV3y5wgJRo0XXuLzLVbHAniUcUNaMI8n7uWh56eVRphWeE
QXJBrEp7b7Krj/qfQu1YHp2VuCSNTtn5VQ94K/UCm32cgKJXFhbJ4masmv0pLcCJ
r/oYyZxt9ux+pTWw/Eld6SIMTjQ8MpLdpQpax74bHUloFO1zix2ZK++US5WDxR7F
YuWqhdcxKvaiY1lHKKhJAcVuOZSA1pX2D+UtgZdBnJeE01HY4vj6rkzlhFXI/P+A
ke0KIHU96G8KXDmIo1LmkJkjF3ZBf6mGy+HhfqRpYoikHt/7g1x/Xk/ApCGdxpyj
++68sSWnFJ8WfzQwkaBRg1avN91hrzlgcbRae2VEUXM/09EtmUXD/S2dSDpJ47u0
6HbsHEPECXfWr2sk6HDDUnjdcpYLfifFcNsK4T6wqdYdMt31DDAW8FanFXMxPtTy
+z8gHbH5lHX/lpOHP5H2SH068SAuJLUjsE6oQqCcurnQh1xukA77n5657ChDPWDS
DjR9tqsbRYka6woqP+CRvrlpsebn+Zm4zDUAr33/basgRzJq932jWHaf7RH/bjsG
0rk/5BamWZw=
=mfuh
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 06 Sep 2014 07:33:27 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jul 3 06:47:48 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.