My ISP provides 2 DHCP IP's on different subnets. I use 2 consumer routers to connect to a mini switch that in turn connects to cable modem. One router serves home devices (desktop/laptop/tablet/smartphone/tv), the other is for an personal IT lab. That setup has worked fine.
To eliminate mini switch and to reduce number of routers to 1, I have got an ERL3.
ERL3 setup:
eth0 -->> home devices
eth1 -->> IT lab
eth2 -->> cable modem
eth2++peth11 DHCP 11.11.11.11/24, GW: 11.11.11.1
eth2++peth12 DHCP 12.12.12.12/24, GW: 12.12.12.2
I want 2 IP addresses for various servers.
When either peth11 or peth12 is enabled (address set to DHCP), home devices and IT lab have Internet access (masquerade to either peth11 or peth12, depending on which one is enabled).
When BOTH peth11 and peth12 are enabled, nothing on the LANs have Internet access. It doesn't matther which pseudo-ethernet interface is masquerated to.
There isn't load balancing, as the connection is on a solo ISP.
What have I done wrong in the configuration?