Hello,
I'm loosed. Your help is really appreciated.
Here what I have:
WAN Interfaces:
WAN0 -> IP 10.30.0.254 (DHCP Reserved on 10.30.0.253) -> 10.30.0.253
WAN1 -> IP 10.30.1.254 (DHCP Reserved on 10.30.1.253) -> 10.30.1.253
WAN2 -> IP 10.30.2.254 (DHCP Reserved on 10.30.2.253) -> 10.30.2.253
WAN3 -> IP 10.30.10.254 (DHCP Reserved on 10.30.10.253) -> 10.30.10.253
LAN Interfaces:
LAN0 -> IP 10.31.0.254 (Static)
LAN1 -> IP 10.31.1.254 (Static)
LAN2 -> IP 10.31.2.254 (Static)
LAN3 -> IP 10.31.10.254 (Static)
Firewall Zone:
LAN0 -> Forward -> WAN0
LAN1 -> Forward -> WAN1
LAN2 -> Forward -> WAN2
LAN3 -> Forward -> WAN3
It seems that I have a routing issue.
What I'm trying to achieve is:
Client on LAN0 -> via -> WAN0 Interface
Client on LAN1 -> via -> WAN1 Interface
Client on LAN2 -> via -> WAN2 Interface
Client on LAN3 -> via -> WAN3 Interface
if I set Use default gateway
on each WAN
interface I need to set a Use gateway metric
value
If I set for example:
WAN0 -> Metric 1
WAN1 -> Metric 2
WAN2 -> Metric 3
WAN3 -> Metric 0
Result:
LAN0 -> No Internet
LAN1 -> No Internet
LAN2 -> No Internet
LAN3 -> Internet
Now changing Metric
settings without any 0
priority:
WAN0 -> Metric 2
WAN1 -> Metric 3
WAN2 -> Metric 4
WAN3 -> Metric 1
Result:
LAN0 -> No Internet
LAN1 -> No Internet
LAN2 -> No Internet
LAN3 -> No Internet
So Internet is only available on LAN -> WAN
for which the WAN Interface
has a Metric
with 0
.
Now if I disable the Use default gateway
on each WAN interface
nothing works anymore ... no LAN have Internet
I don't have any gateway even the gateway published by DHCP reservation.
Destination Gateway Genmask Flags Metric Ref Use Iface
10.30.0.0 * 255.255.255.0 U 10 0 0 eth0.3000
10.30.1.0 * 255.255.255.0 U 3 0 0 eth0.3001
10.30.2.0 * 255.255.255.0 U 2 0 0 eth0.3002
10.30.10.0 * 255.255.255.0 U 0 0 0 eth0.3010
10.31.0.0 * 255.255.255.0 U 0 0 0 eth1.3100
10.31.1.0 * 255.255.255.0 U 0 0 0 eth1.3101
10.31.2.0 * 255.255.255.0 U 0 0 0 eth1.3102
10.31.10.0 * 255.255.255.0 U 0 0 0 eth1.3110
How can I set this to have:
Client on LAN0 -> via -> WAN0 Interface 10.30.0.254 -> 10.30.0.253 -> 192.168.100.254 -> Internet
Client on LAN1 -> via -> WAN1 Interface 10.30.1.254 -> 10.30.1.253 -> 192.168.101.254 -> Internet
Client on LAN2 -> via -> WAN2 Interface 10.30.2.254 -> 10.30.2.253 -> 192.168.102.254 -> Internet
Client on LAN3 -> via -> WAN3 Interface 10.30.10.254 -> 10.30.10.253 -> 192.168.110.254 -> Internet
Many thanks in advance.
Kind Regards