GL-AX1800 - dual WAN

How can I change from Single WAN port to 2 WAN ports?
Possible?

Sure, 1 of these 2 ways you choose:

1.Config on the Luci:
a. Luci -> Network -> Interfaces -> Devices -> br-lan -> config... -> uncheck the LAN1 (eth1)

b. Luci -> Network -> Interfaces -> (slide to the bottom) Add -> Create the secondwan, select the LAN1 (eth1), DHCP or static, select the WAN group of the firewall.


c. Save and apply.


  1. Config on the SSH of router, execute these commands, and will create DHCP secondwan (LAN1):
# /etc/config/network
uci del network.cfg030f15.ports
uci add_list network.cfg030f15.ports='eth2'
uci add_list network.cfg030f15.ports='eth3'
uci add_list network.cfg030f15.ports='eth4'
uci set network.cfg030f15.bridge_empty='1'
uci set network.secondwan=interface
uci set network.secondwan.device='eth1'
uci set network.secondwan.proto='dhcp'

# /etc/config/firewall
uci del firewall.cfg03dc81.network
uci add_list firewall.cfg03dc81.network='wan'
uci add_list firewall.cfg03dc81.network='wan6'
uci add_list firewall.cfg03dc81.network='wwan'
uci add_list firewall.cfg03dc81.network='secondwan'

Note: the 'secondwan' will not display on the GL GUI.

2 Likes

Thanks for the reply and guide

1 Like

Thank you.
I'm so new in a GLs specifics.
Ok, now I have two WAN ports
A few findings:

  1. Please be careful with marking on a box: eth1 = LAN2 & eth2 = LAN1
  2. To avoid client DHCP flipping from one src network to another - configure your own DHCP IP networks and range. This will keep it stable.
  3. In /etc/config/network I have enriched the WAN2 by the following:
    config interface 'WAN2'
    option device 'eth1'
    option proto 'dhcp'
    option force_link '0'
    option ipv6 '0'
    option classlessroute '0'
    option metric '5'
    option vlanid '0'
    option peerdns '1'

    and re-plug the cable to the correct port (see p.1)

FOr more details Dual wan - #6 by JimC and Dual ethernet wan for GL-AXT1800

Thank you in advance.

2 Likes