OpenWrt Forum Archive

Topic: Set different default gateway for different clients on DHCP

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I have LAN with two gateways to internet (DSL and 4G). For number of hosts default gateway should be router towards DSL, for others - router towards 4G. Can I do it with DHCP?

Thanks

https://wiki.openwrt.org/doc/uci/dhcp#d … lt_gateway

If you decide not to use static DHCP (which is probably your easiest solution if the amount of hosts to assign to one of the gateways is relatively small) then you'll need to use VLANs to separate your clients into the two groups

The discussion might have continued from here.