I have two ISPs internet services and both of them are DHCP. I have hEX RB750G. the simple configuration is below
ETH1-3 in the same bridge (LAN).
ETH4: WAN2 (ISP2 internet connected)
ETH5: WAN1 (ISP1 internet connected)
My question is how to auto comment ISP1’s uplink as WAN1 in IP Route 0.0.0.0/0 when ETH5 is plugged in and up . and comment ISP2 as WAN2 when ETH4 is plugged and up. I know I have to write script in DHCP CLIENT section to achieve it.
the reason I want to do it because
both of UPLINKs are only DHCP, not static IP.
i want to setup the netwatch, and netwatch is up and down are based on the script by find comment=WAN1