[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 03138) Re: radvd client problems ....



Hi,

a short question:
As it is that easy to change the RA behaviour, is it also possible to
configure the MN so that I can activate forwarding and at the same time use
default routes distributed by radvd?

And another related question: Is it possible to activate forwarding on a
MobileIPv6 MN
 and still use the default route together with other routes?

Is it possible to merge the MobileIPv6 patch from mobile-ipv6.org for the
2.6.8.1 kernel with a USAGI kernel to achieve this behaviour?

Thanks a lot in advance!
Tobias



Hi,

> Many thanks indeed for your valuable advice! ...  I will perform the
> changes and recompile the kernel.

Actually I have replaced this line (l. 1076) : 
if (in6_dev->cnf.forwarding || !in6_dev->cnf.accept_ra) {

With this line :
if ( (in6_dev->cnf.forwarding && in6_dev->cnf.accept_ra < 2)
    || !in6_dev->cnf.accept_ra) {

So if forwarding is enabled, RA are processed only if accept_ra is >1. 
I think this solution is cleaner, because even if forwarding is
activated, you can choose to accept RA or not for each interface by
changing the value of the accept_ra flag of the interface (with the
sysctl command)

> Just one very last thing, when addresses are allocated via radvd and
> using USAGI's kernel I always get 2-Site-IPv6 addresses on the NIC (
> this does not happen with SuSE's kernel - only one is assigned ),
> I have no ideas where to look at, any advice ?

Can I see a dump if the ifconfig command on your NIC please ?
How many prefixes are advertised on your network ?

Regards,

Romain

> ----- Original Message ----- 
> From: "Romain KUNTZ" <kuntz@xxxxxxxxxxxxxx>
> To: <usagi-users@xxxxxxxxxxxxxx>
> Sent: Friday, June 25, 2004 5:47 PM
> Subject: (usagi-users 02976) Re: radvd client problems ....
> 
> 
> > Hi,
> >
> > > I have done some tests with radvd, downloading the original files,
> > > compiling and running. It seems that my problem is not related to
> > > radvd. Is it possible on Usagi's Stable Kit 5.0 to support IPv6
> > > forwarding (sysctl-w net/ipv6/conf/all/forwarding=1) and stateless
> > > configuration  (sysctl-w net/ipv6/conf/all/accept_ra=1 ) at the
> > > same
> > > time ? ...
> >
> > If forwarding is set to 1, received RA are not processed anymore,
> > even
> > if accept_ra is set to one. You can change this behaviour by
> > modifying
> > NDP source code :
> >
> > /usagi/usagi/kernel/linux26/net/ipv6/ndisc.c (l. 1076)
> > - if (in6_dev->cnf.forwarding || !in6_dev->cnf.accept_ra) {
> > + if (!in6_dev->cnf.accept_ra) {
> >
> > But it is not recommended that routers accept RAs.
> >
> > > everytime I turn on the IPv6 forwarding my NIC no longer sends
> > > Router
> > > Solicitations.
> >
> > You can still send RS using the rtsol command, but the received RA
> > will
> > not be processed, as I told above.
> >
> > > However this does not happen with SuSE's native kernel
> > > 2.4.21-215-default ( I can run sysctl -w
> > > net/ipv6/conf/all/forwarding=1 and yet send Router Solicitations
> > > and
> > > update routing tables). Is there a kernel option I should be aware
> > > of?
> >
> > I guess NDP implementation is not the same.
> >
> > Regards,
> >
> > -- 
> > Romain KUNTZ
> > kuntz@xxxxxxxxxxxxxx
> >
> >
> >
> 
> 
> 


-- 
Romain KUNTZ
kuntz@xxxxxxxxxxxxxx

-- 
Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++