有人知道如何解决这个问题吗?
Service 'maas-dhcpd' is not on, it will be started.
Service 'bind9' failed to start. Its current state is 'dead' and 'Result: exit-code'.
Reloading BIND failed (is it running?): Command `rndc -c /etc/bind/maas/rndc.conf.maas reload` returned non-zero exit status 1:#012rndc: connect failed: 127.0.0.1#954: connection refused
我有 2 个子网、一个桥接器和一个本地网络,其中有 3 个接口 eth0、eth1、br1,我的网络接口:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers x.x.1.1
dns-search maas
# The primary network interface
auto eth0
iface eth0 inet static
address x.x.1.2
netmask 255.255.255.0
gateway x.x.1.1
dns-nameservers x.x.1.1 8.8.8.8 8.8.4.4
mtu 1500
auto eth1
iface eth1 inet manual
mtu 1500
auto br1
iface br1 inet static
address x.x.30.1
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
来自 UI 的 Maas 子网配置:以下托管分配被禁用:
Name x.x.1.0/24
CIDR x.x.1.0/24
Gateway IP x.x.1.2
DNS 172.16.1.1
已启用以下管理分配:
Name x.x.30.0/24
CIDR x.x.30.0/24
Gateway IP x.x.30.1
DNS x.x.1.1
运行sudo rndc -c /etc/bind/maas/rndc.conf.maas reload
结果为:
rndc: connect failed: 127.0.0.1#954: connection refused
我不确定我错过了什么,这个 MaaS 版本是 2.5
附加说明:在我调查时,我注意到中有重复的条目named.conf.maas
,如果我手动修复重复项,它将再次自动生成并回到同一个问题。
/etc/bind/maas/named.conf.maas:92: zone 'x.y.z.in-addr.arpa': already exists previous definition: /etc/bind/maas/named.conf.maas:56
答案1
我找不到重复的 IP,但是我删除了那些出现错误的 IP,然后它就起作用了。