mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
EC2: Turn off IPv6 DAD
Disable Duplicate Address Detection in EC2 instances. The networking
configuration in EC2, with IPv6 addresses assigned by DHCPv6 and
host egress filtering, makes "duplicate addresses" impossible.
This speeds up the boot process in EC2 by 2 seconds.
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D33091
(cherry picked from commit 81075203a0
)
This commit is contained in:
parent
0421d8bdef
commit
efb381caf1
|
@ -68,6 +68,10 @@ vm_extra_pre_umount() {
|
|||
echo 'rtsold_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
||||
echo 'rtsold_flags="-M /usr/local/libexec/rtsold-M -a"' >> ${DESTDIR}/etc/rc.conf
|
||||
|
||||
# Turn off IPv6 Duplicate Address Detection; the EC2 networking
|
||||
# configuration makes it unnecessary.
|
||||
echo 'net.inet6.ip6.dad_count=0' >> ${DESTDIR}/etc/sysctl.conf
|
||||
|
||||
# Provide a script which rtsold can use to launch DHCPv6
|
||||
mkdir -p ${DESTDIR}/usr/local/libexec
|
||||
cat > ${DESTDIR}/usr/local/libexec/rtsold-M <<'EOF'
|
||||
|
|
Loading…
Reference in a new issue