我正在 Ubuntu 12.04 上配置 isc-dhcp-server
我的 eth0 适配器有一个静态 IP
这/etc/default/isc-dhcp-server
INTERFACES="eth0"
这/etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name-servers 192.168.100.100;
option domain-name "cauir.upv.es";
default-lease-time 3600;
max-lease-time 4000;
authoritative;
subnet 192.168.100.0 netmask 255.255.255.0{
option broadcast-address 192.168.100.255;
option routers 192.168.100.100;
host ubuntu{
hardware eth0:02:03:04:05:ff;
fixed-address 192.168.100.120;
}
host windows7{
hardware eth0:02:03:04:ff:02;
fixed-address 192.168.100.130;
}
}
我正在使用service isc-dhcp-server start
并得到:start: Job failed to start
如果我用initctl restart isc-dhcp-server
我得到initctl: Unknown instance:
我究竟做错了什么?
答案1
应该使用以太网在 mac 地址之前
host ubuntu{
hardware ethernet 0:02:03:04:05:ff;
fixed-address 192.168.100.120;
}
host windows7{
hardware ethernet 0:02:03:04:ff:02;
fixed-address 192.168.100.130;
}