[linux] IPv6 dhcp PD 'komt niet aan' ...

Udo van den Heuvel udovdh op xs4all.nl
Vr Aug 20 09:27:13 CEST 2021


On 20-08-2021 08:55, Mike Jonkmans wrote:
> 
> Scope bepaalt (initieel) de ip.src waarmee een pakket verstuurt wordt.
> Maar ik moet bekennen dat ik niet aandachtig naar de tcpdump heb gekeken.

# ip -6 a s dev ppp0
20: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc cbq 
state UNKNOWN group default qlen 3
inet6 fe80::c5d5:e942:39c7:7eb7 peer    fe80::9ecc:83ff:fec6:e7e5/128 
scope link
    valid_lft forever preferred_lft forever

# lsof -p 4066992 -n
COMMAND      PID USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
dhclient 4066992 root  cwd    DIR              254,0     4096    40961 /root
dhclient 4066992 root  rtd    DIR              254,0     4096        2 /
dhclient 4066992 root  txt    REG              254,2  2018144   141553 
/usr/sbin/dhclient
dhclient 4066992 root  mem    REG              254,2    53728    22104 
/usr/lib64/libnss_files-2.33.so
dhclient 4066992 root  mem    REG              254,2  1913544    21939 
/usr/lib64/libc-2.33.so
dhclient 4066992 root  mem    REG              254,2    32696    30196 
/usr/lib64/libcap-ng.so.0.0.0
dhclient 4066992 root  mem    REG              254,2   842360    30776 
/usr/lib64/ld-2.33.so
dhclient 4066992 root    0u   CHR              136,4      0t0        7 
/dev/pts/4 (deleted)
dhclient 4066992 root    1u   CHR              136,4      0t0        7 
/dev/pts/4 (deleted)
dhclient 4066992 root    2u   CHR              136,4      0t0        7 
/dev/pts/4 (deleted)
dhclient 4066992 root    3u  unix 0x000000001f2593f7      0t0 16525445 
type=DGRAM (UNCONNECTED)
dhclient 4066992 root    4w   REG              254,4       64      251 
/var/lib/dhclient/dhclient6.leases
dhclient 4066992 root    5w  FIFO                0,8      0t0 16525446 pipe
dhclient 4066992 root    6u  IPv6           16524541      0t0      UDP 
[fe80::c5d5:e942:39c7:7eb7]:dhcpv6-client

# tcpdump -i ppp0 -vn port 546
dropped privs to tcpdump
tcpdump: listening on ppp0, link-type LINUX_SLL (Linux cooked v1), 
snapshot length 262144 bytes
06:53:09.236781 IP6 (flowlabel 0x7f0d8, hlim 1, next-header UDP (17) 
payload length: 60) fe80::c5d5:e942:39c7:7eb7.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=b68ba1 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 65535) (IA_PD 
IAID:0 T1:3600 T2:5400))
06:53:09.469530 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::9ecc:83ff:fec6:e7e5.dhcpv6-server > 
fe80::c5d5:e942:39c7:7eb7.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=b68ba1 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058339633a63) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
06:53:09.469756 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::9ecc:83ff:fec6:e7e5.dhcpv6-server > 
fe80::c5d5:e942:39c7:7eb7.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=b68ba1 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058339633a63) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
^C

> Dus misschien is het niks. Maar het was mijn eerste idee.

Hierboven de link-local adres info van ppp0, dhclient die op het juiste 
adres luistert en een tcpdumpje.

> Wellicht dat het met de routering te doen heeft.
> /etc/ppp/options: defaultroute ?

IPv4 defaultroute wordt in /usr/sbin/adsl-start gezet.
IPv6 krijgt `vanzelf` een default route, wellicht via radvd?.

Geert schreef:
 > Ik zou meer verkeer willen zien. Langer laten lopen had ik al
gemeld. Laat ook het filter op port 546 weg.

Meer kan, maar zonder port 546 krijg ik te veel meuk te zien.

# tcpdump -i ppp0 -vn port 546
dropped privs to tcpdump
tcpdump: listening on ppp0, link-type LINUX_SLL (Linux cooked v1), 
snapshot length 262144 bytes
09:18:48.227954 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 319) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:18:48.243179 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:18:48.243420 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:18:52.503154 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 746) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:18:52.520217 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:18:52.520548 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:00.822239 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 1578) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:19:00.837334 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:00.837501 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:18.028994 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 3299) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:19:18.046679 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:18.046899 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:52.544418 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 6751) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:19:52.560756 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:19:52.561113 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:21:04.852812 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 13981) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:21:05.057836 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:21:05.058123 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:22:57.191299 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 25215) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:22:57.208296 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:22:57.208669 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:24:58.786179 IP6 (flowlabel 0x59fed, hlim 1, next-header UDP (17) 
payload length: 60) fe80::39e3:264d:9db9:83ec.dhcpv6-client > 
ff02::1:2.dhcpv6-server: [udp sum ok] dhcp6 solicit (xid=2440e8 
(client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(option-request DNS-server DNS-search-list) (elapsed-time 37375) (IA_PD 
IAID:0 T1:3600 T2:5400))
09:24:58.957999 IP6 (class 0xc0, hlim 64, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
09:24:58.958242 IP6 (class 0xc0, hlim 63, next-header UDP (17) payload 
length: 141) fe80::2a8a:1cff:fee0:9484.dhcpv6-server > 
fe80::39e3:264d:9db9:83ec.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=2440e8 (client-ID hwaddr/time type 1 time 394565497 004063f60200) 
(server-ID vid 0000058332383a38) (IA_PD IAID:0 T1:3600 T2:5760 
(IA_PD-prefix 2001:981:a812::/48 pltime:7200 vltime:7200)) (DNS-server 
2001:888:0:6::66 2001:888:0:9::99))
^C

Hierbij hoort:

# ip -6 a s dev ppp0
8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc cbq 
state UNKNOWN group default qlen 3
     inet6 fe80::39e3:264d:9db9:83ec peer fe80::2a8a:1cff:fee0:9484/128 
scope link
        valid_lft forever preferred_lft forever


Groeten,
Udo


Meer informatie over de Linux maillijst