*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to configure dhcrelay on OpenBSD. The man page is very brief and does not mention how to use rcctl. I can get rcctl to enable dhcrelay, but where to I place the interface(s) and dhcp server ip address. Some distributions have mentioned a config file and others just use command line switches.
Not sure about OpenBSD, but in FreeBSD you could create a sh script and drop it in /usr/local/etc/rc.d. Everything that has executable bit set and has sh extension will be executed in this directory at startup.
I'm not a dhcrelay user. But according to the dhcrelay(8) man page, -i requires an interface, not an address. This is the interface that listens for DHCP/BOOTP requests. Server1 through ServerN are the addresses of the DHCP servers where dhcrelay forwards those requests for processing, on other networks. Each instance of dhcrelay can only listen to a single interface.
If you require forwarding of DHCP requests from more than one network, you will need multiple instances of dhcrelay. The rc.subr(8) system configured with rcctl(8) and rc.conf.local(5) cannot be used for more than a single instance of the same service. You may start as many instances as you need via rc.local(8), which is a user-defined shell script called at the end of the rc(8) bootup sequence.
Another alternative might be to run a DHCP server on the OpenBSD system, rather than relaying to external servers. A single server can be configured to support many interfaces.
Last edited by jggimi; 07-19-2016 at 10:22 PM.
Reason: clarity
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.