BT HH3A has 1 DSL port, 1 WAN ethernet port, 4 LAN ethernet ports. The default configuration seems to use the DSL port for Internet access, but I want to use the WAN ethernet port instead, how can I do that? The default configuration is as follows:
I tried to use a LAN port for WAN, but it doesn't seem to support VLAN.
root@LEDE:~# swconfig dev eth0 show
Global attributes:
enable_vlan: 0
Port 0:
pvid: 0
Port 1:
pvid: 0
Port 2:
pvid: 0
Port 3:
pvid: 0
Port 4:
pvid: 0
Port 5:
pvid: 0
Port 6:
pvid: 0
You have to fiddle around with VLANs for this to work. I cannot provide you with exact example but you can always provide your network config and then someone can help you or you can read through the documentation.
Hi. This may help you. This is my config for non-DSL.
config interface 'lan'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option _orig_ifname 'eth0 wlan0-1'
option _orig_bridge 'true'
option ifname 'eth0.1'
option ipaddr '192.168.1.1'
option mtu '1500'
I tried to add the switch-related sections in /etc/config/network on HH3a, without changing other sections. After I restarted the network script, the connection was lost and I am locked out of the router.
Could you confirm that the config above works for you on HH3a, not on HH5a or other router? It seems that VLANs on HH3a do not work as expected.
I do not own a hh3a so I cannot confirm but in your config, there should be no value for mtu in lan section. If you have LuCI installed then look for switch config menu under network.
I tested the proposed configuration on HH3a with OpenWrt 18.06.6 and 19.07.0. The proposed configuration did not work and I had to change the mapping of physical ports to VLANs to reach a workable solution.
My experiments show that the ports of HH3a are indiced as follows:
[WAN] = not used
[LAN1] = port 4
[LAN2] = port 3
[LAN3] = port 2
[Gig LAN4] = port 6
[CPU] = port 5
I was not able to use [WAN] as a wan port, and I decided to use [LAN1] as wan. For some reason I could not make [Gig LAN4] to work as wan in a similar way.
Once again, port [LAN1] is used as WAN, and the red [WAN] port is unused. Don't forget to change MAC addresses to your own. Also, stop and disable dsl_status.