我一直在尝试configurationisc-dhcp-server软件包来分配IP地址给连接到我的eth1适配器的设备。
当前configuration接口:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.2.1 network 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.2.255
dhcpd.conf中:
ddns-update-style none; subnet 192.168.2.0 netmask 255.255.255.0 { option domain-name "Network 1"; option domain-name-servers 203.12.160.35, 203.12.160.36; option routers 192.168.2.254; default-lease-time 42300; max-lease-time 84600; range 192.168.2.100 192.168.2.200; } authoritative; log-facility local7;
重新启动服务器并确保isc-dhcp-server正在运行后,将我的Win7计算机插入到eth1中,但无法识别networking并从服务器获取分配的值。
我唯一能想到的与标准configuration不符的是,我在eth0,eth1,eth2(我目前只使用eth0和eth1)中有3个以太网接口,eth0连接到一个单独的networking。
任何人都可以告诉我为什么我不能让isc-dhcp-server包工作?
UPDATE(在/ etc /默认/ ISC-DHCP服务器):
# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/isc-dhcp-server by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, eg "eth0 eth1". INTERFACES="eht1"
您可能需要在子网块的dhcpd.conf中包含以下行。
接口eth1;
这有助于DHCP服务器绑定和响应这个特定的接口。