Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 13:47:56 +1100
From:      paul van den bergen <pvandenbergen@swin.edu.au>
To:        freebsd-net@freebsd.org
Subject:   Re: IPv6 routing (long)
Message-ID:  <200311061347.56665.pvandenbergen@swin.edu.au>
In-Reply-To: <200311061148.46923.pvandenbergen@swin.edu.au>
References:  <200310311414.15989.pvandenbergen@swin.edu.au> <200310310520.h9V5KI1j011235@intruder.kitchenlab.org> <200311061148.46923.pvandenbergen@swin.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Nov 2003 11:48 am, paul van den bergen wrote:
> static routes.
>
> I imagine that if I do;
>
> on box1
> route add -inet6 -net fec0:0:0:2:: -prefixlen 64 -host fec0:0:0:1::2
>
> on box3
> route add -inet6 -net fec0:0:0:1:: -prefixlen 64 -host fec0:0:0:2::1
>
> and on box 2
> sysctl net.inet6.ip6.forwarding=1
>
> I shouldn't need anything else
>
> or rather, should I need something else?
>
> if I do the same experiment but with IPv4, I also do not get connectivity
> from box 1 to box 3, so obviously something is missing...
>
> what am I missing?

I know it is rather Naff replying to your own post, but I tried something and 
wanted to share...

if I set up static routes on the 2 end machines athat are host to host routes, 
the routing works in both ipv4 and ipv6.

if I set up network routes, it does not.

e.g.

on box1:
route add -inet6 -host fec0:0:0:2::2 -host fec0:0:0:1::2
and on box3:
route add -inet6 -host fec0:0:0:1::1 -host fec0:0:0:2::1

ping6 gets me connectivity all hosts on the local netowrk and the specific 
host on the neighbouring network.

so it seems to me that the problem arises with the network address???  perhaps 
a clash with anycast?  still does not explain the ipv4 failure...

question:
the only reason I have an anycast address is to force the ipv6 address 
assignment.

on startup, each interface gets a ipv6 address of the form fe80: (link local) 
etc.

if I want a fec0: address (site local), sometimes doing
ifconfig vr0 inet6 fec0:0:0:10::/64 eui64 alias
works, some times not. Mostly not.

I especially notice failure when configuring from a boot script for pccard 
based cards, e.g. wi0, an0.

if I do an
ifconfig vr0 inet6 fec0:0:0:10::/64 anycast alias
ifconfig vr0 inet6 fec0:0:0:10::/64 eui64 alias
works every time

someone want to enlighten me to a better way?



-- 
Dr Paul van den Bergen
Centre for Advanced Internet Architectures
caia.swin.edu.au
pvandenbergen@swin.edu.au
IM:bulwynkl2002
"And some run up hill and down dale, knapping the chucky stones 
to pieces wi' hammers, like so many road makers run daft. 
They say it is to see how the world was made."
Sir Walter Scott, St. Ronan's Well 1824 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311061347.56665.pvandenbergen>