长话短说,我有一个计算集群,它需要通过主节点连接到互联网。每台机器都需要端口转发。我希望它们现在通过 DHCP 接收 IP,并根据每台机器的名称而不是直接根据 IP 进行端口转发。
我正在使用 Ubuntu 16.04 LTS。
我的互联网连接是通过enp5s1
,并且我的集群通过 连接到 1Gb 交换机eno1
。
eno1
配置了静态IP 192.168.1.1
。
enp5s1
通过 DHCP 接收 IP 地址。
为了设置 NAT,我运行了:
sudo su
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o enp5s1 -j MASQUERADE
/sbin/iptables -A FORWARD -i enp5s1 -o eno1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eno1 -o enp5s1 -j ACCEPT
然后我跑了:
sudo apt-get install isc-dhcp-server
修改/etc/default/isc-dhcp-server
为:
# Defaults for isc-dhcp-server initscript
# sourced by /etc/init.d/isc-dhcp-server
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
DHCPD_CONF=/etc/dhcp/dhcpd.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPD_PID=/var/run/dhcpd.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eno1"
并编辑/etc/dhcp/dhcpd.conf
如下:
ddns-update-style none;
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
authoritative;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1;
option domain-name "cluster"
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20
}
option netbios-name-servers 192.168.1.1;
然后我运行了,sudo service isc-dhcp-server start
但是集群中的所有机器都没有收到 IP 地址。
运行ip route
结果:
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.1 metric 100
netstat -lnu
:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:39411 0.0.0.0:*
udp 0 0 0.0.0.0:40179 0.0.0.0:*
udp 0 0 127.0.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp6 0 0 :::5353 :::*
udp6 0 0 :::38426 :::*
udp6 0 0 :::48802 :::*
/var/log/syslog
:
Sep 15 00:31:55 amber kernel: [ 456.561609] audit: type=1400 audit(1473924715.423:23): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/dhcpd" pid=5346 comm="apparmor_parser"
Sep 15 00:31:55 amber dhcpd[5430]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 00:31:55 amber dhcpd[5430]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 00:31:55 amber dhcpd[5430]: All rights reserved.
Sep 15 00:31:55 amber dhcpd[5430]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 00:31:55 amber dhcpd[5430]: Config file: /etc/dhcp/dhcpd.conf
Sep 15 00:31:55 amber dhcpd[5430]: Database file: /var/lib/dhcp/dhcpd.leases
Sep 15 00:31:55 amber sh[5430]: Config file: /etc/dhcp/dhcpd.conf
Sep 15 00:31:55 amber sh[5430]: Database file: /var/lib/dhcp/dhcpd.leases
Sep 15 00:31:55 amber sh[5430]: PID file: /run/dhcp-server/dhcpd.pid
Sep 15 00:31:55 amber dhcpd[5430]: PID file: /run/dhcp-server/dhcpd.pid
Sep 15 00:31:55 amber dhcpd[5430]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 00:31:55 amber dhcpd[5430]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 00:31:55 amber dhcpd[5430]: All rights reserved.
Sep 15 00:31:55 amber dhcpd[5430]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 00:31:55 amber dhcpd[5430]: Wrote 0 leases to leases file.
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber sh[5430]: in your dhcpd.conf file for the network segment
Sep 15 00:31:55 amber sh[5430]: in your dhcpd.conf file for the network segment
Sep 15 00:31:55 amber dhcpd[5430]: No subnet declaration for enp5s1 (132.224.214.5).
Sep 15 00:31:55 amber dhcpd[5430]: ** Ignoring requests on enp5s1. If this is not what
Sep 15 00:31:55 amber dhcpd[5430]: you want, please write a subnet declaration
Sep 15 00:31:55 amber dhcpd[5430]: in your dhcpd.conf file for the network segment
Sep 15 00:31:55 amber dhcpd[5430]: to which interface enp5s1 is attached. **
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]: No subnet declaration for eno1 (no IPv4 addresses).
Sep 15 00:31:55 amber dhcpd[5430]: ** Ignoring requests on eno1. If this is not what
Sep 15 00:31:55 amber dhcpd[5430]: you want, please write a subnet declaration
Sep 15 00:31:55 amber dhcpd[5430]: in your dhcpd.conf file for the network segment
Sep 15 00:31:55 amber dhcpd[5430]: to which interface eno1 is attached. **
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]: Not configured to listen on any interfaces!
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]: If you think you have received this message due to a bug rather
Sep 15 00:31:55 amber dhcpd[5430]: than a configuration issue please read the section on submitting
Sep 15 00:31:55 amber dhcpd[5430]: bugs on either our web page at www.isc.org or in the README file
Sep 15 00:31:55 amber dhcpd[5430]: before submitting a bug. These pages explain the proper
Sep 15 00:31:55 amber dhcpd[5430]: process and the information we find helpful for debugging..
Sep 15 00:31:55 amber dhcpd[5430]:
Sep 15 00:31:55 amber dhcpd[5430]: exiting.
Sep 15 00:40:15 amber dhcpd[5653]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 00:40:15 amber dhcpd[5653]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 00:40:15 amber dhcpd[5653]: All rights reserved.
Sep 15 00:40:15 amber dhcpd[5653]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 00:40:15 amber dhcpd[5653]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 00:40:15 amber sh[5653]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 00:40:15 amber dhcpd[5653]: subnet
Sep 15 00:40:15 amber dhcpd[5653]: ^
Sep 15 00:40:15 amber dhcpd[5653]: Configuration file errors encountered -- exiting
Sep 15 00:40:15 amber dhcpd[5653]:
Sep 15 00:40:15 amber dhcpd[5653]: If you think you have received this message due to a bug rather
Sep 15 00:40:15 amber dhcpd[5653]: than a configuration issue please read the section on submitting
Sep 15 00:40:15 amber dhcpd[5653]: bugs on either our web page at www.isc.org or in the README file
Sep 15 00:40:15 amber dhcpd[5653]: before submitting a bug. These pages explain the proper
Sep 15 00:40:15 amber dhcpd[5653]: process and the information we find helpful for debugging..
Sep 15 00:40:15 amber dhcpd[5653]:
Sep 15 00:40:15 amber dhcpd[5653]: exiting.
Sep 15 00:40:22 amber dhcpd[5693]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 00:40:22 amber dhcpd[5693]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 00:40:22 amber dhcpd[5693]: All rights reserved.
Sep 15 00:40:22 amber dhcpd[5693]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 00:40:22 amber dhcpd[5693]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 00:40:22 amber dhcpd[5693]: subnet
Sep 15 00:40:22 amber sh[5693]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 00:40:22 amber dhcpd[5693]: ^
注意到缺少分号,我添加了一个分号,以便
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20
}
成为
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20
};
但是重新启动 DHCP 服务器后,日志仍然不喜欢我,现在抛出错误:
Sep 15 21:42:55 amber dhcpd[11003]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 21:42:55 amber dhcpd[11003]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 21:42:55 amber dhcpd[11003]: All rights reserved.
Sep 15 21:42:55 amber dhcpd[11003]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 21:42:55 amber dhcpd[11003]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 21:42:55 amber dhcpd[11003]: subnet
Sep 15 21:42:55 amber sh[11003]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 21:42:55 amber sh[11003]: /etc/dhcp/dhcpd.conf line 123: expecting a parameter or declaration
Sep 15 21:42:55 amber dhcpd[11003]: ^
Sep 15 21:42:55 amber dhcpd[11003]: /etc/dhcp/dhcpd.conf line 123: expecting a parameter or declaration
Sep 15 21:42:55 amber dhcpd[11003]: };
Sep 15 21:42:55 amber dhcpd[11003]: ^
Sep 15 21:42:55 amber dhcpd[11003]: Configuration file errors encountered -- exiting
Sep 15 21:42:55 amber dhcpd[11003]:
Sep 15 21:42:55 amber dhcpd[11003]: If you think you have received this message due to a bug rather
Sep 15 21:42:55 amber dhcpd[11003]: than a configuration issue please read the section on submitting
Sep 15 21:42:55 amber dhcpd[11003]: bugs on either our web page at www.isc.org or in the README file
Sep 15 21:42:55 amber dhcpd[11003]: before submitting a bug. These pages explain the proper
Sep 15 21:42:55 amber dhcpd[11003]: process and the information we find helpful for debugging..
Sep 15 21:42:55 amber dhcpd[11003]:
Sep 15 21:42:55 amber dhcpd[11003]: exiting.
因此我尝试将该部分更改为:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20;
}
最后又回到了这里:
Sep 15 21:53:40 amber dhcpd[11806]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 21:53:40 amber dhcpd[11806]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 21:53:40 amber dhcpd[11806]: All rights reserved.
Sep 15 21:53:40 amber dhcpd[11806]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 21:53:40 amber dhcpd[11806]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 21:53:40 amber dhcpd[11806]: subnet
Sep 15 21:53:40 amber sh[11806]: /etc/dhcp/dhcpd.conf line 121: semicolon expected.
Sep 15 21:53:40 amber dhcpd[11806]: ^
Sep 15 21:53:40 amber dhcpd[11806]: Configuration file errors encountered -- exiting
Sep 15 21:53:40 amber dhcpd[11806]:
Sep 15 21:53:40 amber dhcpd[11806]: If you think you have received this message due to a bug rather
Sep 15 21:53:40 amber dhcpd[11806]: than a configuration issue please read the section on submitting
Sep 15 21:53:40 amber dhcpd[11806]: bugs on either our web page at www.isc.org or in the README file
Sep 15 21:53:40 amber dhcpd[11806]: before submitting a bug. These pages explain the proper
Sep 15 21:53:40 amber dhcpd[11806]: process and the information we find helpful for debugging..
Sep 15 21:53:40 amber dhcpd[11806]:
Sep 15 21:53:40 amber dhcpd[11806]: exiting.
/var/lib/dhcp/dhcpd.leases
:
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.3.3
数据包捕获相当无聊:
sudo tcpdump -tttt -n -i eno1 port 67 and port 68
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eno1, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
我查看了很多其他问题和教程,但我对 DNS 感到困惑。我需要指定互联网 DNS 还是我的集群 DNS?还是两者兼而有之?
我该开启权威吗?
我应该去哪里查找为什么我的机器都没有获取 IP 地址?
更新(仍然有问题):
令我惊讶的是,第 119 行缺少一个分号。我修复了这个问题,DHCP 服务器立即开始工作。
重新运行所有测试:
netstat -lnu
:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:39411 0.0.0.0:*
udp 0 0 0.0.0.0:40179 0.0.0.0:*
udp 0 0 0.0.0.0:32432 0.0.0.0:*
udp 0 0 127.0.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp6 0 0 :::5353 :::*
udp6 0 0 :::46332 :::*
udp6 0 0 :::38426 :::*
udp6 0 0 :::48802 :::*
/var/log/syslog
:
Sep 15 21:58:56 amber dhcpd[11849]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 21:58:56 amber dhcpd[11849]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 21:58:56 amber dhcpd[11849]: All rights reserved.
Sep 15 21:58:56 amber dhcpd[11849]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 21:58:56 amber dhcpd[11849]: Config file: /etc/dhcp/dhcpd.conf
Sep 15 21:58:56 amber dhcpd[11849]: Database file: /var/lib/dhcp/dhcpd.leases
Sep 15 21:58:56 amber sh[11849]: Config file: /etc/dhcp/dhcpd.conf
Sep 15 21:58:56 amber sh[11849]: Database file: /var/lib/dhcp/dhcpd.leases
Sep 15 21:58:56 amber sh[11849]: PID file: /run/dhcp-server/dhcpd.pid
Sep 15 21:58:56 amber dhcpd[11849]: PID file: /run/dhcp-server/dhcpd.pid
Sep 15 21:58:56 amber dhcpd[11849]: Internet Systems Consortium DHCP Server 4.3.3
Sep 15 21:58:56 amber dhcpd[11849]: Copyright 2004-2015 Internet Systems Consortium.
Sep 15 21:58:56 amber dhcpd[11849]: All rights reserved.
Sep 15 21:58:56 amber dhcpd[11849]: For info, please visit https://www.isc.org/software/dhcp/
Sep 15 21:58:56 amber dhcpd[11849]: Wrote 0 leases to leases file.
Sep 15 21:58:56 amber dhcpd[11849]: Listening on LPF/eno1/e0:3f:49:44:c0:ee/192.168.1.0/24
Sep 15 21:58:56 amber dhcpd[11849]: Sending on LPF/eno1/e0:3f:49:44:c0:ee/192.168.1.0/24
Sep 15 21:58:56 amber dhcpd[11849]: Sending on Socket/fallback/fallback-net
Sep 15 21:58:56 amber dhcpd[11849]: Server starting service.
Sep 15 21:59:00 amber dhcpd[11849]: DHCPDISCOVER from 90:e2:ba:66:41:e5 via eno1
Sep 15 21:59:01 amber dhcpd[11849]: DHCPOFFER on 192.168.1.2 to 90:e2:ba:66:41:e5 (eliza) via eno1
Sep 15 21:59:01 amber dhcpd[11849]: DHCPREQUEST for 192.168.1.2 (192.168.1.1) from 90:e2:ba:66:41:e5 (eliza) via eno1
Sep 15 21:59:01 amber dhcpd[11849]: DHCPACK on 192.168.1.2 to 90:e2:ba:66:41:e5 (eliza) via eno1
Sep 15 21:59:06 amber dhcpd[11849]: DHCPDISCOVER from 90:e2:ba:67:1d:37 via eno1
Sep 15 21:59:07 amber dhcpd[11849]: DHCPDISCOVER from 90:e2:ba:67:1f:73 via eno1
Sep 15 21:59:07 amber dhcpd[11849]: DHCPOFFER on 192.168.1.3 to 90:e2:ba:67:1d:37 (becca) via eno1
Sep 15 21:59:07 amber dhcpd[11849]: DHCPREQUEST for 192.168.1.3 (192.168.1.1) from 90:e2:ba:67:1d:37 (becca) via eno1
Sep 15 21:59:07 amber dhcpd[11849]: DHCPACK on 192.168.1.3 to 90:e2:ba:67:1d:37 (becca) via eno1
Sep 15 21:59:07 amber dhcpd[11849]: DHCPDISCOVER from 90:e2:ba:53:d4:bc via eno1
Sep 15 21:59:07 amber dhcpd[11849]: ICMP Echo Reply for 192.168.1.3 late or spurious.
Sep 15 21:59:07 amber dhcpd[11849]: DHCPDISCOVER from 90:e2:ba:67:1f:9f via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPOFFER on 192.168.1.4 to 90:e2:ba:67:1f:73 (catheline) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPREQUEST for 192.168.1.4 (192.168.1.1) from 90:e2:ba:67:1f:73 (catheline) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPACK on 192.168.1.4 to 90:e2:ba:67:1f:73 (catheline) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: ICMP Echo Reply for 192.168.1.4 late or spurious.
Sep 15 21:59:08 amber dhcpd[11849]: DHCPOFFER on 192.168.1.5 to 90:e2:ba:53:d4:bc (felicia) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPREQUEST for 192.168.1.5 (192.168.1.1) from 90:e2:ba:53:d4:bc (felicia) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPACK on 192.168.1.5 to 90:e2:ba:53:d4:bc (felicia) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPOFFER on 192.168.1.6 to 90:e2:ba:67:1f:9f (dolly) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPREQUEST for 192.168.1.6 (192.168.1.1) from 90:e2:ba:67:1f:9f (dolly) via eno1
Sep 15 21:59:08 amber dhcpd[11849]: DHCPACK on 192.168.1.6 to 90:e2:ba:67:1f:9f (dolly) via eno1
看起来除了一台机器之外,其他机器都已成功解决!唯一有问题的机器是 Windows 机器。看起来那台机器需要进一步调试。
dhcpd.leases
还显示现在每个人都已连接到 DHCP,除了 Windows 机器 (albert):
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.3.3
server-duid "\000\001\000\001\037n8\220\340?ID\300\356";
lease 192.168.1.2 {
starts 5 2016/09/16 04:59:01;
ends 5 2016/09/16 05:09:01;
cltt 5 2016/09/16 04:59:01;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:66:41:e5;
client-hostname "eliza";
}
lease 192.168.1.3 {
starts 5 2016/09/16 04:59:07;
ends 5 2016/09/16 05:09:07;
cltt 5 2016/09/16 04:59:07;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1d:37;
client-hostname "becca";
}
lease 192.168.1.4 {
starts 5 2016/09/16 04:59:08;
ends 5 2016/09/16 05:09:08;
cltt 5 2016/09/16 04:59:08;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:73;
client-hostname "catheline";
}
lease 192.168.1.5 {
starts 5 2016/09/16 04:59:08;
ends 5 2016/09/16 05:09:08;
cltt 5 2016/09/16 04:59:08;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:53:d4:bc;
client-hostname "felicia";
}
lease 192.168.1.6 {
starts 5 2016/09/16 04:59:08;
ends 5 2016/09/16 05:09:08;
cltt 5 2016/09/16 04:59:08;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:9f;
client-hostname "dolly";
}
lease 192.168.1.2 {
starts 5 2016/09/16 05:03:04;
ends 5 2016/09/16 05:13:04;
cltt 5 2016/09/16 05:03:04;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:66:41:e5;
client-hostname "eliza";
}
lease 192.168.1.4 {
starts 5 2016/09/16 05:03:28;
ends 5 2016/09/16 05:13:28;
cltt 5 2016/09/16 05:03:28;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:73;
client-hostname "catheline";
}
lease 192.168.1.3 {
starts 5 2016/09/16 05:03:29;
ends 5 2016/09/16 05:13:29;
cltt 5 2016/09/16 05:03:29;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1d:37;
client-hostname "becca";
}
lease 192.168.1.6 {
starts 5 2016/09/16 05:03:48;
ends 5 2016/09/16 05:13:48;
cltt 5 2016/09/16 05:03:48;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:9f;
client-hostname "dolly";
}
lease 192.168.1.5 {
starts 5 2016/09/16 05:04:08;
ends 5 2016/09/16 05:14:08;
cltt 5 2016/09/16 05:04:08;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:53:d4:bc;
client-hostname "felicia";
}
lease 192.168.1.2 {
starts 5 2016/09/16 05:07:08;
ends 5 2016/09/16 05:17:08;
cltt 5 2016/09/16 05:07:08;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:66:41:e5;
client-hostname "eliza";
}
lease 192.168.1.3 {
starts 5 2016/09/16 05:07:21;
ends 5 2016/09/16 05:17:21;
cltt 5 2016/09/16 05:07:21;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1d:37;
client-hostname "becca";
}
lease 192.168.1.4 {
starts 5 2016/09/16 05:07:27;
ends 5 2016/09/16 05:17:27;
cltt 5 2016/09/16 05:07:27;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:73;
client-hostname "catheline";
}
lease 192.168.1.6 {
starts 5 2016/09/16 05:08:35;
ends 5 2016/09/16 05:18:35;
cltt 5 2016/09/16 05:08:35;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:9f;
client-hostname "dolly";
}
lease 192.168.1.5 {
starts 5 2016/09/16 05:08:49;
ends 5 2016/09/16 05:18:49;
cltt 5 2016/09/16 05:08:49;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:53:d4:bc;
client-hostname "felicia";
}
lease 192.168.1.2 {
starts 5 2016/09/16 05:10:57;
ends 5 2016/09/16 05:20:57;
cltt 5 2016/09/16 05:10:57;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:66:41:e5;
client-hostname "eliza";
}
lease 192.168.1.3 {
starts 5 2016/09/16 05:11:28;
ends 5 2016/09/16 05:21:28;
cltt 5 2016/09/16 05:11:28;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1d:37;
client-hostname "becca";
}
lease 192.168.1.4 {
starts 5 2016/09/16 05:12:01;
ends 5 2016/09/16 05:22:01;
cltt 5 2016/09/16 05:12:01;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 90:e2:ba:67:1f:73;
client-hostname "catheline";
}
这些机器似乎都无法连接到互联网、DNS 或代理。所以它仍然有问题,但至少我现在正在提供 DHCP。
不太有用的更新:
Windows 计算机刚刚处于睡眠状态,一唤醒就获得了 DHCP。因此现在所有计算机都连接到 DHCP。我似乎无法让 NAT 正常工作。