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-01 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.



dual stack native ipv4 & ipv6 pppoe configuration questions

2022-08-01 Thread void

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.

/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.

2. I guess the way forward will ge to firstly get the ND working on the
cnmac1/pppoe0 interface?

Thanks in advance for any assistance.

Output of netstat -rnfinet6 follows

Routing tables

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
::/96  ::1UGRS   00 32768 8 lo0  
::1::1UHhl  10   29 32768 1 lo0  
:::0.0.0.0/96  ::1UGRS   00 32768 8 lo0  
2002::/24  ::1UGRS   00 32768 8 lo0  
2002:7f00::/24 ::1UGRS   00 32768 8 lo0  
2002:e000::/20 ::1UGRS   00 32768 8 lo0  
2002:ff00::/24 ::1UGRS   00 32768 8 lo0  
fe80::/10  ::1UGRS   06 32768 8 lo0  
fec0::/10  ::1UGRS   00 32768 8 lo0  
fe80::%cnmac0/64   fe80::f29f:c2ff:fe10:488e%cnmac0 UCn00 - 4 cnmac0

fe80::f29f:c2ff:fe10:488e%cnmac0   f0:9f:c2:10:48:8e  UHLl   0  
 14 - 1 cnmac0
fe80::%cnmac1/64   fe80::f29f:c2ff:fe10:488f%cnmac1 UCn
00 - 4 cnmac1
fe80::f29f:c2ff:fe10:488f%cnmac1   f0:9f:c2:10:48:8f  UHLl   0  
 18 - 1 cnmac1
fe80::1%lo0fe80::1%lo0UHl00 32768 1 lo0  
fe80::%pppoe0/64   fe80::200:0:0:1%pppoe0 Un 0  480 - 4 pppoe0

fe80::200:0:0:1%pppoe0 fe80::200:0:0:1%pppoe0 UHl0  
  0 - 1 pppoe0
ff01::/16  ::1UGRS   15 32768 8 lo0  
ff01::%cnmac0/32   fe80::f29f:c2ff:fe10:488e%cnmac0 Um 00 - 4 cnmac0

ff01::%cnmac1/32   fe80::f29f:c2ff:fe10:488f%cnmac1 Um 
00 - 4 cnmac1
ff01::%lo0/32  fe80::1%lo0Um 01 32768 4 lo0  
ff01::%pppoe0/32   fe80::200:0:0:1%pppoe0 Um 00 - 4 pppoe0
ff02::/16  ::1UGRS   15 32768 8 lo0  
ff02::%cnmac0/32   fe80::f29f:c2ff:fe10:488e%cnmac0 Um 00 - 4 cnmac0

ff02::%cnmac1/32   fe80::f29f:c2ff:fe10:488f%cnmac1 Um 
00 - 4 cnmac1
ff02::%lo0/32  fe80::1%lo0Um 01 32768 4 lo0