It was actually not that hard, My above configuration is completely okay. I did a little mistake while issuing the command. :sweat_smile:

I wish both of you and the whole Gl-inet team a joyous year of the pig. :relaxed: I know that mwan3 can automate the process but I just wanted to write a simple script myself.

I actually used the interface IP instead of the interface name while using ping -I 172.30.138.151 8.8.8.8. On windows, we need to use the interface IP and I did the same on Linux. But later I found out that I need to specify it as ping -I eth1 8.8.8.8 Thus, the above network configuration is completely okay and everything is working as expected as can be verified from the below picture (left ISP1 right ISP2).

I did face some challenges while trying to reach my 2nd ISP IP from the internet. I specified both ISP gateway as default route in the routing table but ISP1 had a lower metric. So, even if the ping echo request came on eth1, the echo reply was sent out from eth0. On windows, it is not a problem because the response is sent out automatically from the original interface where it is received. But here I resolved it by deploying policy-based routing using ip rule

echo "1 isp2" >> /etc/iproute2/rt_tables
ip route add default via 172.30.138.1 dev eth1 table isp2
ip rule add from 172.30.138.151/32 table isp2

Now the configuration is complete. Thus if anyone wants to use a similar setup on AR150, they can just use the network configuration posted on my original question. It is valid.

I was also a little bit confused from the OpenWRT wiki page of AR150.

|eth0.1, vlan1|WAN port|
| — | — | — | — |
|eth0.0, vlan0|LAN port|

I thought WAN and LAN ports are not 2 VLANS on a 5 port switch but they are connected to 2 different pysical interfaces. From the ar9331 datasheet:

The AR9331 supports four LAN ports and one WAN port with integrated PHY. … The four LAN ports connect to the CPU through a GMII interface … The WAN port can be configured to connect to the CPU using a dedicated MII interface.

It starts to get more confusing for me after that.

Can someone please explain the internal configurations of the LAN and WAN in layman’s terms? Thank you :slight_smile: