Date: Tue, 1 Aug 2017 16:52:38 -0400 From: Mike Tancsa <mike@sentex.net> To: =?UTF-8?Q?Trond_Endrest=c3=b8l?= <Trond.Endrestol@fagskolen.gjovik.no> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: default route via SLAAC not working ? Message-ID: <4903f268-43c9-a0d6-6a52-da6f72e8df04@sentex.net> In-Reply-To: <alpine.BSF.2.21.1708011353110.55225@mail.fig.ol.no> References: <96b09a19-01e1-e182-e9c0-d1526a12373f@sentex.net> <alpine.BSF.2.21.1707311727060.1133@mail.fig.ol.no> <3e0e0362-d8c8-5f85-46dc-f4e103f78fc2@sentex.net> <alpine.BSF.2.21.1707311753200.1133@mail.fig.ol.no> <d4435f2b-d2bc-bb28-e03e-832ad4dd5c14@sentex.net> <alpine.BSF.2.21.1707312008360.1133@mail.fig.ol.no> <d5eece42-e677-7724-5a5f-6aa10e4375a8@sentex.net> <alpine.BSF.2.21.1708011353110.55225@mail.fig.ol.no>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------1D4B2A2C06CFFAC71240D271 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit On 8/1/2017 8:06 AM, Trond Endrestøl wrote: > On Mon, 31 Jul 2017 15:37-0400, Mike Tancsa wrote: > >> On 7/31/2017 2:13 PM, Trond Endrestøl wrote: >>> >>> That's strange. I've never seen such behaviour before. >>> Maybe a packet capture can provide more clues. >> >> Not sure whats going on from the pcap. I dont see any values in there >> that would tell the kernel to expire a setting in less than 5min > > I compared your router's advertisement with the core switch at work: Thanks! > > > Your router has the "managed" flag and the "other" flag turned on. > Does the router provide DHCPv6 service? If it does, then you need a > DHCPv6 client, e.g. net/dhcp6 or net/dhcpcd. > > If you can turn off the "managed" flag in the router's advertisements, > then SLAAC should work out of the box. You would still need a DHCPv6 > client to extract the DNS information, unless you want to handle that > through DHCP for IPv4 or do it manually. Unfortunately, there is nothing on the webpage interface for it to allow any such changes. Looking at the api which I can prod via CURL, there isnt anything there either. I wonder if I will just have to make some scripting hacks to get the thing going. As for the default route, same deal using a dhcp6 client. It seems to interact with the server ok, but something kills the default route, a few min after boot up. In the dhclient leases, whats odd is I dont see the router in there % cat dhclient6.leases default-duid "\000\001\000\001!\023\237\213\014[\217'\232d"; lease6 { interface "ue0"; ia-na 8f:27:9a:64 { starts 1501618956; renew 1800; rebind 2880; iaaddr 2605:8d80:6e0:6baf:a471:742b:c137:4 { starts 1501618956; preferred-life 3600; max-life 7200; } } option dhcp6.client-id 0:1:0:1:21:13:9f:8b:c:5b:8f:27:9a:64; option dhcp6.server-id 0:1:0:1:21:13:4b:a9:a4:71:74:2b:c1:37; option dhcp6.name-servers fe80::a671:74ff:fe2b:c137; } But then the same deal, the route gets deleted for some reason by the kernel. If I manually delete and add the default route so its static, it seems to stay put and the kernel doesnt delete it. Interestingly enough, the route also has a correct MTU when I delete / re add it of 1460 instead of 1500. (see attached) got message of size 312 on Tue Aug 1 16:31:52 2017 RTM_DELETE: Delete Route: len 312, pid: 0, seq 0, errno 0, flags:<GATEWAY,DONE> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> default fe80::a671:74ff:fe2b:c137%ue0 default ue0:c.5b.8f.27.9a.64 fe80::e5b:8fff:fe27:9a64%ue0 Aug 1 16:22:35 Created duid "\000\001\000\001!\023\237\213\014[\217'\232d". Aug 1 16:22:35 XMT: Solicit on ue0, interval 1040ms. Aug 1 16:22:36 RCV: Advertise message on ue0 from fe80::a671:74ff:fe2b:c137. Aug 1 16:22:36 XMT: Request on ue0, interval 940ms. Aug 1 16:22:36 RCV: Reply message on ue0 from fe80::a671:74ff:fe2b:c137. Perhaps hackish script time to get this thing working reliably. It seems if I manually add the route it stays. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ --------------1D4B2A2C06CFFAC71240D271 Content-Type: text/plain; charset=UTF-8; name="ip6.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ip6.txt" 16:22:36.000608 IP6 (hlim 1, next-header UDP (17) payload length: 60) fe8= 0::e5b:8fff:fe27:9a64.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xi= d=3D2ed06b (client-ID hwaddr/time type 1 time 554934155 0c5b8f279a64) (op= tion-request DNS-server DNS-search-list) (elapsed-time 0) (IA_NA IAID:240= 1737316 T1:3600 T2:5400)) 16:22:36.034098 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff27:9a64: [icmp6 sum ok] ICMP6, ne= ighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:22:36.034380 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:22:36.063971 IP6 (hlim 64, next-header UDP (17) payload length: 117) f= e80::a671:74ff:fe2b:c137.44177 > fe80::e5b:8fff:fe27:9a64.546: [udp sum o= k] dhcp6 advertise (xid=3D2ed06b (client-ID hwaddr/time type 1 time 55493= 4155 0c5b8f279a64) (server-ID hwaddr/time type 1 time 554912681 a471742bc= 137) (IA_NA IAID:2401737316 T1:1800 T2:2880 (IA_ADDR 2605:8d80:6e0:6baf:a= 471:742b:c137:4 pltime:3600 vltime:7200)) (preference 255) (DNS-server fe= 80::a671:74ff:fe2b:c137)) 16:22:36.068633 IP6 (hlim 1, next-header UDP (17) payload length: 106) fe= 80::e5b:8fff:fe27:9a64.546 > ff02::1:2.547: [udp sum ok] dhcp6 request (x= id=3D4592f7 (client-ID hwaddr/time type 1 time 554934155 0c5b8f279a64) (s= erver-ID hwaddr/time type 1 time 554912681 a471742bc137) (option-request = DNS-server DNS-search-list) (elapsed-time 0) (IA_NA IAID:2401737316 T1:36= 00 T2:5400 (IA_ADDR 2605:8d80:6e0:6baf:a471:742b:c137:4 pltime:7200 vltim= e:7500))) 16:22:36.093990 IP6 (hlim 64, next-header UDP (17) payload length: 112) f= e80::a671:74ff:fe2b:c137.44177 > fe80::e5b:8fff:fe27:9a64.546: [udp sum o= k] dhcp6 reply (xid=3D4592f7 (client-ID hwaddr/time type 1 time 554934155= 0c5b8f279a64) (server-ID hwaddr/time type 1 time 554912681 a471742bc137)= (IA_NA IAID:2401737316 T1:1800 T2:2880 (IA_ADDR 2605:8d80:6e0:6baf:a471:= 742b:c137:4 pltime:3600 vltime:7200)) (DNS-server fe80::a671:74ff:fe2b:c1= 37)) 16:22:36.119616 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) :: > ff02::1:ff37:4: [icmp6 sum ok] ICMP6, neighbor solicitation, lengt= h 32, who has 2605:8d80:6e0:6baf:a471:742b:c137:4 unknown option (14), length 8 (1):=20 0x0000: 83d2 4e34 d79e 16:22:36.150365 IP6 (hlim 1, next-header Options (0) payload length: 36) = fe80::e5b:8fff:fe27:9a64 > ff02::16: HBH (padn)(rtalert: 0x0000) [icmp6 = sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff0= 2::1:ff37:4 to_ex { }] 16:22:38.224692 IP6 (hlim 1, next-header Options (0) payload length: 36) = fe80::e5b:8fff:fe27:9a64 > ff02::16: HBH (padn)(rtalert: 0x0000) [icmp6 = sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff0= 2::1:ff37:4 to_ex { }] 16:22:41.103310 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:22:41.163761 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:25:48.643194 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff27:9a64: [icmp6 sum ok] ICMP6, ne= ighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:25:48.643494 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:25:53.187259 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:25:53.210585 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:26:34.638479 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:26:34.678174 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:26:35.057954 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:26:35.058103 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited] 16:27:55.901454 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff37:4: [icmp6 sum ok] ICMP6, neigh= bor solicitation, length 32, who has 2605:8d80:6e0:6baf:a471:742b:c137:4 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:27:55.901648 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is 2605:8d80:6e0:6baf:a471:74= 2b:c137:4, Flags [router, solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:28:01.000407 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:28:01.031303 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:28:06.038682 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:28:06.038913 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited] 16:28:30.695389 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff27:9a64: [icmp6 sum ok] ICMP6, ne= ighbor solicitation, length 32, who has 2605:8d80:6e0:6baf:e5b:8fff:fe27:= 9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:28:30.695699 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is 2605:8d80:6e0:6baf:e5b:8ff= f:fe27:9a64, Flags [router, solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:28:35.806683 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:28:35.832527 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:28:40.839852 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:28:40.840044 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited] 16:31:52.605825 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 64= ) fe80::a671:74ff:fe2b:c137 > ff02::1: [icmp6 sum ok] ICMP6, router adver= tisement, length 64 hop limit 64, Flags [managed, other stateful], pref high, router = lifetime 1800s, reachable time 0s, retrans time 0s prefix info option (3), length 32 (4): 2605:8d80:6e0:6baf::/64,= Flags [onlink, auto], valid time 7200s, pref. time 3600s 0x0000: 40c0 0000 1c20 0000 0e10 0000 0000 2605 0x0010: 8d80 06e0 6baf 0000 0000 0000 0000 mtu option (5), length 8 (1): 1460 0x0000: 0000 0000 05b4 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:33:12.672428 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff27:9a64: [icmp6 sum ok] ICMP6, ne= ighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:33:12.672657 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:33:17.270504 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:33:17.289895 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:37:53.070475 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::a671:74ff:fe2b:c137 > ff02::1:ff27:9a64: [icmp6 sum ok] ICMP6, ne= ighbor solicitation, length 32, who has fe80::e5b:8fff:fe27:9a64 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 16:37:53.070748 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 32, tgt is fe80::e5b:8fff:fe27:9a64, = Flags [router, solicited, override] destination link-address option (2), length 8 (1): 0c:5b:8f:27:= 9a:64 0x0000: 0c5b 8f27 9a64 16:37:57.560178 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32= ) fe80::e5b:8fff:fe27:9a64 > fe80::a671:74ff:fe2b:c137: [icmp6 sum ok] IC= MP6, neighbor solicitation, length 32, who has fe80::a671:74ff:fe2b:c137 source link-address option (1), length 8 (1): 0c:5b:8f:27:9a:64= 0x0000: 0c5b 8f27 9a64 16:37:57.618019 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24= ) fe80::a671:74ff:fe2b:c137 > fe80::e5b:8fff:fe27:9a64: [icmp6 sum ok] IC= MP6, neighbor advertisement, length 24, tgt is fe80::a671:74ff:fe2b:c137,= Flags [router, solicited] 16:38:39.185531 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 64= ) fe80::a671:74ff:fe2b:c137 > ff02::1: [icmp6 sum ok] ICMP6, router adver= tisement, length 64 hop limit 64, Flags [managed, other stateful], pref high, router = lifetime 1800s, reachable time 0s, retrans time 0s prefix info option (3), length 32 (4): 2605:8d80:6e0:6baf::/64,= Flags [onlink, auto], valid time 7200s, pref. time 3600s 0x0000: 40c0 0000 1c20 0000 0e10 0000 0000 2605 0x0010: 8d80 06e0 6baf 0000 0000 0000 0000 mtu option (5), length 8 (1): 1460 0x0000: 0000 0000 05b4 source link-address option (1), length 8 (1): a4:71:74:2b:c1:37= 0x0000: a471 742b c137 --------------1D4B2A2C06CFFAC71240D271--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4903f268-43c9-a0d6-6a52-da6f72e8df04>