Re: dual stack native ipv4 & ipv6 pppoe configuration questions

2022-08-03 Thread void

On Tue, Aug 02, 2022 at 06:49:06AM -, Stuart Henderson wrote:


You can either use autoconf on pppoe0, or have dhcpcd handle ND as well.

See dhcpcd's pkg-readme file.


This is working perfectly now, and the advice within is pitched perfectly
at the new user setting it up for the first time. The ND prefix and the 
delegation prefixes are on the right interfaces, and have managed to get 
another machine routing ipv6 through the (router) device, also on the 
/48 prefix. That particular machine is using slaac to grab its ipv6.


The router is still running slaacd. I'll need to test whether it still 
works if slaacd is deactivated, but that can wait till later.


thanks,



Re: dual stack native ipv4 & ipv6 pppoe configuration questions

2022-08-02 Thread void

On Tue, Aug 02, 2022 at 06:49:06AM -, Stuart Henderson wrote:

On 2022-08-01, void  wrote:



1. do I use slaac for the pppoe/cnmac1 and dhcpcd for cnmac0 ?

The ISP stated the ND is used to automatically assign an ip to the
wan interface of the router, so this will (will it?) mean cnmac1.


That will mean pppoe0 unless they are doing something unusual.


OK, thanks for clarifying. I doubt my ISP are doing anything unusual.


/etc/hostname.cnmac1 has the following:
up mtu 1508
inet6 autoconf

/etc/hostname.pppoe0 :
inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \
pppoedev cnmac1 authproto chap \
authname 'mylogin@isp' authkey 'correct-password' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

inet6 eui64
!/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0

I'm not sure if the last couple of lines are correct.


You can either use autoconf on pppoe0, or have dhcpcd handle ND as well.

See dhcpcd's pkg-readme file.


OK, I'll try autoconf first. Thanks for writing.



Re: dual stack native ipv4 & ipv6 pppoe configuration questions

2022-08-02 Thread Stuart Henderson
On 2022-08-01, void  wrote:
> Hello,
>
> My connection has a /64 Neighbour Discovery (ND) for the pppoe
> connection and a /48 Prefix Delegation (PD) for the LAN.
>
> (ipv4 works fine)
>
> The parent interface of the pppoe connection is cnmac1
> The LAN interface is cnmac0. (cnmac2 is present but unused and there
> is no /etc/hostname.cnmac2)
>
> 1. do I use slaac for the pppoe/cnmac1 and dhcpcd for cnmac0 ?
>
> The ISP stated the ND is used to automatically assign an ip to the
> wan interface of the router, so this will (will it?) mean cnmac1.

That will mean pppoe0 unless they are doing something unusual.

> /etc/hostname.cnmac1 has the following:
> up mtu 1508
> inet6 autoconf
>
> /etc/hostname.pppoe0 :
> inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \
> pppoedev cnmac1 authproto chap \
> authname 'mylogin@isp' authkey 'correct-password' up
> dest 0.0.0.1
> !/sbin/route add default -ifp pppoe0 0.0.0.1
>
> inet6 eui64
> !/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0
>
> I'm not sure if the last couple of lines are correct.

You can either use autoconf on pppoe0, or have dhcpcd handle ND as well.

See dhcpcd's pkg-readme file.


-- 
Please keep replies on the mailing list.