鉴于以下配置,我如何撤消routers
内部的选项,group
以便某些机器不会被告知默认网关来自外部group
?
group {
# A bunch of options go here which should apply to all clients.
option domain-name-servers ...
option routers 192.168.0.1;
# This host should be told about the default gateway. This is just an example,
# there are many more.
host example1 { }
group {
# This group should have no default gateway supplied by the DHCP server,
# but otherwise inherit all the options from the parent group.
option routers 0.0.0.0;
host example2 { }
}
# There are many other groups that I have omitted for simplicity.
group { }
}
就我而言,我使用的是从中国购买的一些 IP 摄像机,它们会打电话回家(实际上是在美国的服务器上),但仍然无法在设备本身上禁用此功能。我已经阻止了防火墙的流量,但我希望它甚至没有走那么远,通过告诉相机没有可用的默认网关,所以它不知道将发往我网络外部的数据包发送到哪里。
当我使用上述配置时,0.0.0.0
ISC DHCP 服务器会忽略该选项,它仍然给出从父组继承的网关。
有没有办法完全覆盖routers
父级的选项group { }
?