From b355c01d5c0d3b232554b7d371816c9dc0390111 Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Fri, 27 Jan 2017 14:09:49 -0500 Subject: [PATCH] Support DHCPv6 Add dhcp6c client to aquire IPv6 addresses and routes automatically and modify ifupdown config to use it for eth0. Change-Id: I6cdaf4cfaeef6b101659a9abf98b1dd2e0fc2b77 --- common-files/etc/network/interfaces | 4 ++++ conf/buildroot-client.config | 2 ++ conf/buildroot-debug.config | 2 ++ conf/buildroot-server.config | 2 ++ 4 files changed, 10 insertions(+) diff --git a/common-files/etc/network/interfaces b/common-files/etc/network/interfaces index e70b502..e01d4e1 100644 --- a/common-files/etc/network/interfaces +++ b/common-files/etc/network/interfaces @@ -4,3 +4,7 @@ iface lo inet loopback auto eth0 iface eth0 inet dhcp + +iface eth0 inet6 manual + up dhcpcd -b -6 eth0 + down kill `cat /var/run/dhcpcd-eth0-6.pid` 2>/dev/null diff --git a/conf/buildroot-client.config b/conf/buildroot-client.config index b817048..a169b7b 100644 --- a/conf/buildroot-client.config +++ b/conf/buildroot-client.config @@ -19,7 +19,9 @@ BR2_PACKAGE_NFS_UTILS_RPC_LOCKD=y BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD=y BR2_PACKAGE_NFS_UTILS_NFS4=y BR2_PACKAGE_LIBICONV=y +BR2_PACKAGE_DHCPCD=y BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y BR2_PACKAGE_IPROUTE2=y BR2_TARGET_SYSLINUX=y BR2_TARGET_SYSLINUX_MBR=y diff --git a/conf/buildroot-debug.config b/conf/buildroot-debug.config index 960b19a..8faab74 100644 --- a/conf/buildroot-debug.config +++ b/conf/buildroot-debug.config @@ -28,7 +28,9 @@ BR2_PACKAGE_NFS_UTILS_NFS4=y BR2_PACKAGE_GNUTLS=y BR2_PACKAGE_OPENLDAP=y BR2_PACKAGE_LIBICONV=y +BR2_PACKAGE_DHCPCD=y BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y BR2_PACKAGE_IPROUTE2=y BR2_PACKAGE_SAMBA4=y BR2_TARGET_SYSLINUX=y diff --git a/conf/buildroot-server.config b/conf/buildroot-server.config index cf85853..9861bb3 100644 --- a/conf/buildroot-server.config +++ b/conf/buildroot-server.config @@ -24,7 +24,9 @@ BR2_PACKAGE_NFS_UTILS_NFS4=y BR2_PACKAGE_GNUTLS=y BR2_PACKAGE_OPENLDAP=y BR2_PACKAGE_LIBICONV=y +BR2_PACKAGE_DHCPCD=y BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y BR2_PACKAGE_IPROUTE2=y BR2_PACKAGE_SAMBA4=y BR2_TARGET_SYSLINUX=y