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

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



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