Is there a way make WAN port work as LAN on hAP ac² - hAP ac2 ( IPQ4018/ IPQ4019/ IPQ40XX) on 21.02.3?

Hi,

Is it possible to use WAN port (5) as a LAN port on this platform? How do I configure it?

This is the initial VLAN configuration :

root@hAPac2:~# swconfig dev switch0 vlan 1 show
VLAN 1:
        vid: 1
        ports: 0 1 2 3 4
root@hAPac2:~# swconfig dev switch0 vlan 2 show
VLAN 2:
        vid: 2
        ports: 0t 5


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

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

I have tried this:

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

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

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '2'
        option ports '0t'

This:

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

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '0t 1 2 3 4 5'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '2'
        option ports '0'

This:

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

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '0t 1 2 3 4 5'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '2'
        option ports '0t'

I have tried disabling VLAN also, nothing worked, I don't know what else to try, is there any way to configure it?

Thanks

Is this (making WAN port work as a LAN port on IPQ40XX) possible on 22.03 ?

Solution has nothing to do with VLANs, configuring VLAN is not needed. What I had to do was to make eth1 part of br-lan:

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

I also had previously disabled WAN and WAN6 before configuring eth1 as a bridge port, together with other configuration related to making the device work as a client.

Network -> Interfaces

WAN -> Edit
Disable : Bring up on boot

Save & Apply

WAN6 -> Edit
Disable : Bring up on boot

Save & Apply

Edit: Since then I have removed WAN and WAN6 interfaces as I noticed constant log messages referring to them (and so they seemed not really disabled). I won't need to reactivate the WAN port anytime soon on this particular device so why bother trying to deactivate them.

Network -> Interfaces

WAN -> Delete

Save & Apply

WAN6 -> Delete

Save & Apply
1 Like

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