Le 23/03/2016 22:24, Stuart Henderson a écrit :
On 2016/03/23 14:07, Stefan Sperling wrote:
On Wed, Mar 23, 2016 at 09:40:24PM +0900, stephane Tranchemer wrote:
So the connection should be fine, problem is how to get gateway information
on the hosts behind the router...
FYI, I have a /56 class assigned.
So it sounds like this should work:
Make sure your router can ping the IPv6 interface across its pppoe1
interface with the link-local address assigned.
BTW, if you set the netmask of pppeo1 to 128, you'll see the peer's
address in the output of ifconfig pppoe1. You can use that as default
route, or you can use pppoe1's own link-local address as default route.
Alternatively just keep using your fe80:: default route.
Which option you choose really doesn't matter, it's a point-to-point
link so as long as you push packets across it somehow they will reach
the other end. As long as you can ping global IPv6 addresses from the
router, you're set.
Now assign a /64, carved out of your /56, to the internal interface.
Pick one (any) address out of this /64 for your router's internal interface.
Run rtadvd(8) on the internal interface.
Either use IPv6 autoconf on the clients, or statically assign unique
addresses from the /64 to them and use the router's address from the /64
as gateway address (default route) on clients.
Ensure that sysctl net.inet6.ip6.forwarding=1 is set on your router,
and use pf(4) to filter IPv6 traffic as needed.
If they are following the Broadband Forum spec or something close to
it, then you should be able to use autoconf on the PPP interface on
your router to fetch an address and default route if you like, it's
not necessary because this should all work with a link-local address
on the point-to-point interface and fe80:: default route, but
sometimes it can be useful to have an "outside" address that you
can ping independently of your "inside" address.
Many ISPs will route your whole assignment towards your PPP interface
when you connect, but not all of them do this: some require that you
fetch subnets using DHCP6-PD on your router in order for them to be
routed towards you. So if it doesn't work hardcoded, this might be
something that needs doing (if this is required, the ISP ought to be
able to advise).
It worked !
Your first mail gave me the hint,
in fact all was ready to work but there are still a few rough edges.
I ran my conf as I wrote in my first message, then on one of my boxes in
the internal network I gave
-an new IPv6 address like myprefix::25/64
-the default route in myprefix::1
and it just worked!
I still have to figure out how ping6 to the outside world from my
OpenBSD router box.
The default route on my hostname.pppoe1 doesn't make it.
Thanks for all, this little much gave a big help, cheers ;)