Disable per-host option in dhcpd.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anyone knows how to disable an option in a host-specific entry in dhcpd.conf? I have:

subnet 192.168.0.0 netmask 255.255.255.0 {

 # …

  option routers 192.168.0.1;
}

host octopus {

 # I don't want this host to receive the routers option

}

Combing through dhcpd.conf(5), I don't see anything.

The octopus host is dual-homed on 192.168.2.0/24, with a router on 192.168.2.1 that should be its default router.

I tried to override it with a host-specific "option routers 192.168.2.1" setting. This doesn't work, octopus routing is messed up:

default via 192.168.2.1 dev lan0  proto static  metric 1024
192.168.0.0/24 dev lan0  proto kernel  scope link  src 192.168.0.4
192.168.2.0/24 dev wan0  proto kernel  scope link  src 192.168.2.100
192.168.2.1 dev lan0  proto static  scope link  metric 1024

octopus's lan0 is the 192.168.0.0/24 segment. So this is wrong. octopus's wan0 port is on 192.168.2.0/24 is also BOOTPROTO=dhcp and I'd expect that network's router to control its routing, but looks like lan0's DHCP overrides it.

I suppose I can configure octopus's lan0 port for a static, non-DHCP boot, but I would like to keep it on DHCP, if possible.

Attachment: pgpF52fBq7vk8.pgp
Description: PGP signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux