我正在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:
我究竟做错了什么?
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;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句