Thanks Pierre! However the command does not work for me... Do I need to upgrade my openbsd box? I am on 5.8 right now.
# rcctl set dhcpd rtable 200 usage: rcctl [-df] action|get|getdef|ls|order|set [service | daemon [variable [arguments]] | daemons | lsarg] # rcctl get dhcpd dhcpd_class=daemon dhcpd_flags=vr1 dhcpd_timeout=30 dhcpd_user=root If it works, does it mean that dhcpd will only operate on rtable 200? It will be nice if it can run on both rtable 200 and the default rtable 0... Thanks! Difan -----Original Message----- From: petrus...@gmail.com [mailto:petrus...@gmail.com] On Behalf Of Pierre Emeriaud Sent: Tuesday, July 12, 2016 12:53 AM To: Difan Zhao <difan.z...@pason.com> Cc: misc@openbsd.org Subject: Re: ratble and rdomain support on dhcpd and openvpn 2016-07-12 7:41 GMT+02:00 Difan Zhao <difan.z...@pason.com>: > > So I have been playing with rdomain and I am able to get dhcp and > openvpn working but with some hacking. I am seeking a proper way to do this. rcctl(8) is the way to go: # rcctl set dhcpd rtable 200 # rcctl get dhcpd dhcpd_class=daemon dhcpd_flags= dhcpd_rtable=200 dhcpd_timeout=30 dhcpd_user=root (thanks again aja, much appreciated)