How to define default gateway with multiple DHCP interfaces?

Solution 1:

When you are setting up the subnet, use the routers option in dhcpd.conf

option routers 239.252.197.1;

From http://linux.die.net/man/8/dhcpd

subnet 239.252.197.0 netmask 255.255.255.0 {
  range 239.252.197.10 239.252.197.250;
  default-lease-time 600 max-lease-time 7200;
  option subnet-mask 255.255.255.0;
  option broadcast-address 239.252.197.255;
  option routers 239.252.197.1;
  option domain-name-servers 239.252.197.2, 239.252.197.3;
  option domain-name "isc.org";
}

If you don't have access to the DHCP server, you might be able to do this in the /etc/network/interfaces file. This is similar to how it would be set up statically, only using DHCP and specifying the gateway.

iface eth0 inet dhcp
    gateway 10.21.8.1