Date: Wed, 14 Aug 2019 12:02:42 -0400 From: Mike <the.lists@mgm51.com> To: freebsd-questions@freebsd.org Subject: Re: ipv6 and freebsd 12.0-R Message-ID: <146af497-a034-b2d8-5a97-1fa540d1ab43@mgm51.com> In-Reply-To: <20190814102551.GD73009@bastion.zyxst.net> References: <20190812151706.GA13685@bastion.zyxst.net> <0c0f8cb9-9c4e-64e6-aaff-4f4ff89aab3e@mgm51.com> <20190814102551.GD73009@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?146af497-a034-b2d8-5a97-1fa540d1ab43>