dhcrelay running as both DHCP and DHCPv6 relay agent on CentOS 6.2
- by Tibor
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?