[Solved] How to swap LAN switch to WAN

On a GL.iNet GL-B1300, it comes configured as 1 WAN port and 2 LAN ports, I'd like to configure it to have 2 WAN ports and 1 LAN

i.e. instead of the switch bring across 2 LAN ports, it's across 2 WAN ports, so I can connect one cable whose device is on the LAN, another cable to the upstream WAN, and a third cable whose device would be on the WAN, not the LAN.

Is this possible?

Thanks.

Yes, it should be possible.

Please post your network config file so we can guide you through the process.

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network

Here's the output.

root@LittleHouse:/etc# cat /etc/config/network

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd67:9f27:7058::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'eth0'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'

config interface 'wan6'
	option device 'eth1'
	option proto 'dhcpv6'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '3 4 0'

this should be really simple...

swap eth0 (currently assigned to lan) and eth1 (currently assigned to wan and wan6).

Keep in mind that the upstream (wan) may only assign an IPv4 address to one downstream device (i.e. this router or the device connected to the other wan port) -- this is often the case for residential ISPs. That issue typically will not apply if you are connecting to an existing home network or similar context where such limitations are not imposed.

It worked! Thanks!

Great!

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.