Dual Wan with simple route to subnet

Hello

Can someone help me with configuration of DUAL WAN with simple routes to subnets ( NO FAILOVER, NO LOADBALANCING)

Example network:
WAN-1 ip 1.2.3.1
WAN-2 ip 1.2.3.2

192.168.1.1/24 - LAN-1
192.168.2.1/24 - LAN-2

Please im beginner if you can help with detail commands, how to do it

The most important thing for beginner is to learn how to find information, understand it and make small adjustments to fit own needs.

Let me help you a little, this is pretty much the config you need. Don’t get fooled by “load balancing” in the title, they just statically send one half of subnet to one ISP and another half to second ISP. So you will use two completely different subnets, intead of two “half-subnets”, that’s the only difference.

ok thanks for the link, i didnt know about this tutorial.
i have a modification in last post about configuration,
Dual WAN:
STATIC WAN IP - eth1 - ( working)
Dynamic WAN IP - eth2 - ( problem, is there any additional config for this)

LAN: (SAME SUBNET)
192.168.1.100 - eth1 (OUT)
192.168.1.105 - eth2 (OUT)

Is this tutorial apply for this configuration?

Just from top of my head, but I’m almost sure it will work:

  • mark only packets that you want to go via eth1
  • don’t add any static default route for eth2

This way, eth2 will get default route from DHCP and it will be used by all unmarked packets. And marked ones will use static default route on eth1.

ok thanks SOB i will try and test this tutorial