public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Willy Tarreau <w@1wt.eu>
Cc: Matthias Cramer <matthias.cramer@interway.ch>,
	James Chapman <jchapman@katalix.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	netdev@vger.kernel.org
Subject: Re: Wired behaviour with IPv6 over PPP
Date: Wed, 28 May 2008 11:59:45 +0200	[thread overview]
Message-ID: <483D2D11.9080803@plouf.fr.eu.org> (raw)
In-Reply-To: <20080524042911.GE6749@1wt.eu>

Hello all,

Willy Tarreau a écrit/wrote :
> On Thu, May 22, 2008 at 09:05:47PM +0200, Matthias Cramer wrote:
> 
>>James Chapman wrote:
>>
>>>Andrew Morton wrote:
>>>
>>>>On Wed, 21 May 2008 14:56:43 +0200 Matthias Cramer
>>>><matthias.cramer@interway.ch> wrote:
>>>>
>>>>>I have a very wired behaviour when doing IPv6 over PPPoE.
>>>>>
>>>>>The situation:
>>>>>
>>>>>A linux box connected to a DSL Modem, on the other side is a Cisco
>>>>>LNS which terminates the PPP session (actually L2TP).
>>>>>I have control over both ends.
>>>>>
>>>>>When I have net.ipv6.conf.all.forwarding set to 0 then the ppp
>>>>>Interface gets a IPv6 address from the Cisco via IP6CP.
>>>>>When I have net.ipv6.conf.all.forwarding set to 1 them the ppp
>>>>>Interface does not get an address, it has only a normal link local
>>>>>address.

AFAIK IPV6CP/PPP only allows to negotiate link local addresses. So I 
guess the global address and default route is assigned by another 
mechanism, maybe stateless autoconfiguration using router advertisement, 
although I was not aware it could be used on a PPP link because of the 
absence of MAC address. Enabling global forwarding 
(net.ipv6.conf.all.forwarding=1) disables stateless autoconfiguration 
(see ip-sysctl.txt in kernel documentation) on all interfaces. I believe 
this is consistent with the observed behaviour.

>>>>>When I start the ppp session with forwarding set to 0 I can ping out
>>>>>and there exists a default route to ppp0 , then I switch forwarding to 1
>>>>>the default route disappears and therefore routing does not work any
>>>>>longer.

I have read reports about this. I guess the logic is that enabling 
forwarding turns the box into a router, so the default route learned 
from another router's advertisements by autoconfiguration should be 
deleted. Even the autoconfigured global address will eventually expire.

> Well, at least it has been working for years in kernel 2.4 for me with
> pppd 2.4.2b3 to 2.4.4 (I've not upgraded my firewall to 2.6 yet). So
> it has definitely been working at some point.

What exactly has been working ?

PS : Willy, do you plan to backport the security fix for the sit module 
from 2.6.25.3 into 2.4 ?

  reply	other threads:[~2008-05-28 10:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21 12:56 Wired behaviour with IPv6 over PPP Matthias Cramer
2008-05-22  8:49 ` Andrew Morton
2008-05-22  9:55   ` James Chapman
2008-05-22 19:05     ` Matthias Cramer
2008-05-23 10:46       ` James Chapman
2008-05-23 19:50         ` Matthias Cramer
2008-05-23 21:34           ` James Chapman
2008-05-24  4:29       ` Willy Tarreau
2008-05-28  9:59         ` Pascal Hambourg [this message]
2008-05-28 12:45           ` Willy Tarreau

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=483D2D11.9080803@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=akpm@linux-foundation.org \
    --cc=jchapman@katalix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.cramer@interway.ch \
    --cc=netdev@vger.kernel.org \
    --cc=w@1wt.eu \
    /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