From owner-freebsd-questions@freebsd.org Wed Aug 14 16:02:53 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DB686B07B9 for ; Wed, 14 Aug 2019 16:02:53 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from oneyou.mgm51.net (oneyou.mgm51.net [IPv6:2607:f2f8:af30::100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "oneyou.mgm51.net", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467vW10Sgdz4TyL for ; Wed, 14 Aug 2019 16:02:52 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:558:6017:94:89cc:e793:1fd3:2611]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "sentry.24cl.com", Issuer "Mike's Certificate Authority" (verified OK)) by oneyou.mgm51.net (Postfix) with ESMTPS id 467vVx5MFpzhHXS for ; Wed, 14 Aug 2019 12:02:49 -0400 (EDT) Received: from [IPv6:fdcf:b715:2f4d:1:24a6:1c8a:37e3:7554] (unknown [IPv6:fdcf:b715:2f4d:1:24a6:1c8a:37e3:7554]) by sentry.24cl.com (Postfix) with ESMTP id 467vVw5N9Tz1wvF for ; Wed, 14 Aug 2019 12:02:48 -0400 (EDT) Subject: Re: ipv6 and freebsd 12.0-R To: freebsd-questions@freebsd.org References: <20190812151706.GA13685@bastion.zyxst.net> <0c0f8cb9-9c4e-64e6-aaff-4f4ff89aab3e@mgm51.com> <20190814102551.GD73009@bastion.zyxst.net> From: Mike Message-ID: <146af497-a034-b2d8-5a97-1fa540d1ab43@mgm51.com> Date: Wed, 14 Aug 2019 12:02:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190814102551.GD73009@bastion.zyxst.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 467vW10Sgdz4TyL X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.57 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[mgm51.com:s=mgm51-02]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[mgm51.com.dwl.dnswl.org : 127.0.6.2]; R_SPF_ALLOW(-0.20)[+ip6:2607:f2f8:af30::100]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-0.06)[asn: 25795(-0.26), country: US(-0.05)]; RCVD_IN_DNSWL_MED(-0.20)[0.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.f.a.8.f.2.f.7.0.6.2.list.dnswl.org : 127.0.6.2]; DKIM_TRACE(0.00)[mgm51.com:+]; DMARC_POLICY_ALLOW(-0.50)[mgm51.com,quarantine]; NEURAL_HAM_SHORT(-0.81)[-0.807,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:25795, ipnet:2607:f2f8::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2019 16:02:53 -0000 On 8/14/2019 6:25 AM, tech-lists wrote: > On Tue, Aug 13, 2019 at 10:58:12AM -0400, Mike via freebsd-questions wrote: >> On 8/12/2019 11:17 AM, tech-lists wrote: >>> Hi, >>> >>> I want a freebsd machine acting as a router and PPPoE client to obtain its >>> ipv6 /64 from my ISP and dole out and route ipv6 addresses from my ipv6 /48 >>> (also provided by/routed by my ISP). >>> [snip] >> >> If the IPv6 /64 address and the IPv6 /48 prefix are given out via DHCP, >> you might need to look at a suitable DHCP client. >> >> I've used the ISC DHCP dhclient with success. >> >> https://www.freshports.org/net/isc-dhcp44-client/ > > Hi, > > would you know -server and -relay are also required for my use case? > > thanks, > I don't know enough of your scenario to answer that. I can tell you how it works in my case... My ISP (Comcast residential) provides the IPv6 address and prefix via DHCP. When my system boots up, it solicits a router advertisement. I run OpenBSD, and I put the following in hostname.if to solicit the router advertisement: inet6 autoconf Your OS may use the rtsol command or something similar. Then it runs dhclient, with the command below, to get the IPv6 address and the prefix (in my case a /62 prefix). /usr/local/sbin/dhclient -6 --no-pid -P -N --prefix-len-hint 62 --address-prefix-len 64 -cf /usr/local/etc/dhcp/dhclient6.conf -lf /var/db/dhcp/dhclient6.leases.wan em0 (note that if you are also using IPv4 DHCP, you'll need a separate instance of the dhclient command for IPv4) You probably need to contact your ISP to find out the correct sequence that you should use to obtain the IPv6 addresses you want.