其目前的设置如下:
# /etc/dnsmasq.conf domain-needed bogus-priv address=/doubleclick.net/127.0.0.1 except-interface=eth0 dhcp-range=interface:eth1,192.168.1.10,192.168.1.127,12h dhcp-range=interface:eth2,192.168.2.10,192.168.2.127,12h log-queries
我有3个网卡,eth0连接到ADSL路由器,eth1连接到无线AP,eth2连接到交换机,其他计算机连接到交换机。
当我尝试启动dnsmasq时,我得到“dnsmasq:无法创build侦听套接字:地址已经在使用中”
lsof -i
只显示以下命令:portmap,rpc.statd,smbd,sshd,mysqld,named,samba和apache2。
netstat -antuevp
只显示程序:mysqld,smbd,rpc.statd,portmap,apache2,named,sshd和smbd。
在安装dnsmasq之前,我已经安装了dhcp客户端和服务器,但之后又删除了它。
这是/ etc / network / interfaces如果可以帮助:
# /etc/network/interfaces auto lo iface lo inet loopback mapping hotplug script grep map eth1 auto eth0 iface eth0 inet static address 192.168.0.128 netmask 255.255.255.0 auto eth1 iface eth1 inet static address 192.168.1.128 netmask 255.255.255.0 auto eth2 iface eth2 inet static address 192.168.2.128 netmask 255.255.255.0
编辑:给所有静态IP。
此外,dnsmasq上的某个人build议删除named,所以我也会尝试。
如果你想在它们上面运行DHCP,eth1和eth2不是静态地址? 我假设你试图从有线局域网隔离无线networking(否则你需要桥接)?