Ubuntu 16.04绑定configuration不工作

我的绑定设置有一个奇怪的问题。 昨天,我试图在我的Ubuntu 16.04服务器上安装Pi Hole,并搞砸了我的绑定。 我已经卸载了Pi Hole,但现在不能工作了。

我的/ etc / network / interfaces:

auto lo iface lo inet loopback auto enp7s0 iface enp7s0 inet manual bond-master bond0 auto enp8s0 iface enp8s0 inet manual bond-master bond0 auto enp9s0 iface enp9s0 inet manual bond-master bond0 auto enp10s0 iface enp10s0 inet manual bond-master bond0 auto bond0 iface bond0 inet static address 10.10.1.4 netmask 255.255.255.0 gateway 10.10.1.1 dns-nameservers 8.8.8.8 8.8.4.4 bond-slaves enp7s0 enp8s0 enp9s0 enp10s0 bond-mode 4 bond-miimon 100 bond-lacp-rate 1 

我的/ etc / modules:

 # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. loop lp rtc bonding 

现在,当我启动获取这些IP的接口时:

enp7s0:169.254.15.22

enp8s0: 10.10.1.32

enp9s0:169.254.15.22

enp10s0:169.254.15.22

所以enp8s0得到一个DHCP地址,我不明白为什么。

如果我做ifup bond0,它显示bond0已经configuration。

谁能说出为什么债券不能工作。

谢谢

我重写了我的答案,因为我第一次没有看到你使用了PiHole。 对不起。

我看着PiHole安装程序,并了解所有静态和dynamicIPconfiguration在dhcpcd5。 删除它并重新启动您的服务器。

 sudo dpkg -r dhcpcd5