我有一个在虚拟主机上运行的CentOS 6服务器。 该主机上的IP地址通过DHCP主机分配,另一个接口具有静态IP(testingnetworking)。 我想在专用接口上设置私人DHCP服务器。 这样就不会和现有的DHCP服务器发生冲突。 我怎样才能实现使用我的其他界面。 主机详细信息如下
所以我想在N / W上设置一个私有的DHCP,但需要确保它不与N / W 1冲突。
isc-dhcp-server软件包提供的例子恰好覆盖了这种情况。 你应该告诉dhcpd每个networking,以便做出适当的决定。
例如:
# No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 10.42.10.0 netmask 255.255.255.248 { } # Service these clients subnet 10.84.0.0 netmask 255.255.255.0 { option domain-name "foilage.brazzers.com"; option subnet-mask 255.255.255.0; option routers 10.84.0.254; option ntp-servers 10.84.0.10, 10.84.0.11; pool { range 10.84.0.100 10.84.0.199; } }