From: Francis SOUYRI <francis.souyri@apec.fr>
To: Olaf van der Spek <ml@vdspek.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Josh Boyer <jwboyer@redhat.com>, Joel Sing <jsing@google.com>,
Julian Anastasov <ja@ssi.bg>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: loopback IP alias breaks tftp?
Date: Tue, 11 Oct 2011 09:28:05 +0200 [thread overview]
Message-ID: <4E93F005.8050002@apec.fr> (raw)
In-Reply-To: <CAGVGHmt4_kf5XTS745aMa9kuxb1Fu9v8f6boG-vewVeto5jJ=w@mail.gmail.com>
Hello,
I put this in the Red Hat Bugzilla – Bug 739534:
#####
I do the test with the bind of the IP alias (for test purpose
127.0.0.2), but I have the same problem.
# ifconfig lo; ifconfig lo:0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24418 errors:0 dropped:0 overruns:0 frame:0
TX packets:24418 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3798250 (3.6 MiB) TX bytes:3798250 (3.6 MiB)
lo:0 Link encap:Local Loopback
inet addr:127.0.0.2 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
# netstat -an | grep 69 | grep udp
udp 0 0 127.0.0.2:69 0.0.0.0:*
udp 0 0 :::52697 :::*
# tftp 127.0.0.2
tftp> trace
Packet tracing on.
tftp> get /thinstation/dell/vmlinuz
sent RRQ <file=/thinstation/dell/vmlinuz, mode=netascii>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
sent ACK <block=1>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
sent ACK <block=1>
sent ACK <block=1>
sent ACK <block=1>
received DATA <block=1, 512 bytes>
sent ACK <block=1>
Transfer timed out.
tftp>
I do also this test, I changed the local route (the loopback used is
only for test purpose, in production I used 192.168.100.0/24 network).
# ip route show table local | grep 127.0.0.
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.2 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
#
# ip route change local 127.0.0.2 dev lo proto kernel scope host src
127.0.0.2
#
# ip route show table local | grep 127.0.0.
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.2 dev lo proto kernel scope host src 127.0.0.2
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
#
# tftp 127.0.0.2
tftp> get /thinstation/dell/vmlinuz
tftp> quit
#
# ip route change local 127.0.0.2 dev lo proto kernel scope host src
127.0.0.1
# tftp 127.0.0.2
tftp> get /thinstation/dell/vmlinuz
Transfer timed out.
tftp> quit
#
#####
Best regards.
Francis
On 10/10/2011 05:25 PM, Olaf van der Spek wrote:
> On Mon, Oct 10, 2011 at 5:22 PM, Eric Dumazet<eric.dumazet@gmail.com> wrote:
>>> Isn't that a bad way to work around this issue?
>>> It'd require you to duplicate your IP config for every daemon that
>>> listens on UDP interfaces.
>>> What about IP addresses that are added/deleted after the daemon is launchad?
>>>
>>> Olaf
>>
>> Thats a pretty common problem, even prior to discussed commit.
>>
>> If you take a look at common UDP daemons, they have to setup a listener
>> for each IP address, OR use the correct API ( setsockopt(fd, IPPROTO_IP,
>> &on, sizeof(on)) and handle IP_PKTINFO ancillary message)
>
> Only the latter solution seems right.
>
> Olaf
>
prev parent reply other threads:[~2011-10-11 7:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 20:27 loopback IP alias breaks tftp? Josh Boyer
2011-10-05 21:18 ` Julian Anastasov
2011-10-06 13:23 ` Josh Boyer
2011-10-07 7:02 ` Joel Sing
2011-10-07 7:29 ` Eric Dumazet
2011-10-07 11:40 ` Josh Boyer
2011-10-07 12:04 ` Eric Dumazet
2011-10-07 12:23 ` Eric Dumazet
2011-10-10 15:10 ` Josh Boyer
2011-10-10 15:15 ` Olaf van der Spek
2011-10-10 15:22 ` Eric Dumazet
2011-10-10 15:25 ` Olaf van der Spek
2011-10-11 7:28 ` Francis SOUYRI [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E93F005.8050002@apec.fr \
--to=francis.souyri@apec.fr \
--cc=eric.dumazet@gmail.com \
--cc=ja@ssi.bg \
--cc=jsing@google.com \
--cc=jwboyer@redhat.com \
--cc=ml@vdspek.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).