dhcrelay running as both DHCP and DHCPv6 relay agent on CentOS 6.2

Posted by Tibor on Server Fault See other posts from Server Fault or by Tibor
Published on 2012-07-05T09:03:38Z Indexed on 2012/07/05 9:17 UTC
Read the original article Hit count: 325

Filed under:
|
|

I am trying to set up a DHCP relay agent that would relay DHCP requests for both IPv4 and IPv6. I am using CentOS 6.2 and I am using the dhcrelay from the ISC DHCP implementation. I would like to set it up as a service, but the man page for dhcrelay states:

-6   Run dhcrelay as a DHCPv6 relay agent.  Incompatible with the -4 option.

-4   Run  dhcrelay as a DHCPv4/BOOTP relay agent.  This is the default mode of operation, so the argu-
     ment is not necessary, but may be specified for clarity.  Incompatible with -6.

It seems that the -6 and -4 options are incompatible. How would I still make it work for both protocols without rolling my own service wrapper for both cases?

© Server Fault or respective owner

Related posts about centos

Related posts about Services