What's new

Help about dual Gateway

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

chchia

Occasional Visitor
thanks, i had referred to this thread about setting the client with 2 different gateway within the same subnet. and i had successfully done it to assign certain client to second gateway.

but is there an option to setup/assign 2 gateway to client with different gateway metrics?

my main router/gateway is 192.168.1.1 running Asuswrt
my second router/gateway is 192.168.1.9 running Openwrt

Code:
dhcp-option=tag:isp1,option:router,192.168.1.1
dhcp-option=tag:isp2,option:router,192.168.1.9
dhcp-host=xxxx:5B:8B:30,set:isp2,192.168.1.40
dhcp-host=xxxx:A7:ED:2D,set:isp2,192.168.1.41
dhcp-host=xxxx:11:41:9C,set:isp2,192.168.1.42
dhcp-host=xxxx:C2:36:FB,set:isp2,192.168.1.43
dhcp-host=xxxx:45:4F:B7,set:isp2,192.168.1.44

my intention is to set the dhcp-host to have second gateway to isp1 but with lower metrics, so that the host will fall down to isp1 if isp2 is fail or not working, is this possible?
i would like all client to use isp2 as much as possible and only switch to isp1 in case isp2 is down.

looking forward for any suggestion.
 
You can specify multiple gateways, in order of preference, in a DHCP reply. But DHCP can't effect the client's metric calculation. You can try the following but I don't know whether it will "fail over" like you want. That's probably client-specific behaviour.

Code:
dhcp-option=tag:isp2,option:router,192.168.1.9,192.168.1.1
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top