Hi,
I am currently using a BT Home Hub 5a (HH5a) with OpenWrt 23.05.
As I live in the UK, it's currently configured to use dsl0.101 in the wan interface and PPPoE as my ISP supports that method of authentication for my FTTC connection.
I would like to add a second WAN connection via the physical red port on the back of the router (it has 4 yellow 'LAN' ports and 1 red 'WAN' port, although if I understand correctly, OpenWrt doesn't make the distinction).
In Network>Devices, there is device called eth0 which shares the same MAC address as a device called wan, and a tunnel device called pppoe-wan. In Network>Interfaces, there is an interface called wan which has its device as pppoe-wan and an interface called wan6 which has its device as an alias of @wan. There is also Network>DSL which pertains to signalling for xDSL.
Is this 'red port' missing in OpenWrt? I initially though that eth0 would be this elusive 5th LAN port, but I now think that's not correct.
There does appear to be somewhat relevant information on the ToH page for this device, some of which involves editing /etc/board.json, though this information is only cosmetic as far as I can tell. With regards to the rest of the information on that page, it seems to be outdated and I didn't find a solution there (or one that I could understand anyway )..
Can anyone explain how I can add an upstream router to the 'red port' so OpenWrt will get a DHCP address from a LAN port on the upstream router (I will put OpenWrt in a DMZ on the upstream router)?
Thanks,
Stephen
EDIT: So originally, I created an Interface called ethwan and gave it the device eth0 with protocol DHCP. This did not work.
After posting this topic, I was digging around and noticed that eth0 is referred to as Ethernet switch in the device list and lan1, lan2, lan3 and lan4 are referred to as Switch ports. Then I noticed another Switch port called wan, so I created ethwan again, using device wan and protocol DHCP. This worked and ethwan got an IP address from the upstream router. However, it appers that this altered the default gateway and, as the upstream router doesn't have a public IP address yet (activation is due Monday), OpenWrt and my LAN had no internet access. Possibly due to ignorance, I had to remove ethwan and reboot to recover that.
So, I see I can get an IP from DHCP on the upstream router and, presumably, if that upstream router had internet access, eveything might have been OK and I could set to work understanding mwan3 for fail-over scenarios?
The confusion for me now is, there is a device called wan and also an interface called wan; presumably the wan interface name is arbitrary?
Also, what happened to the defaly gateway? (the upstream router is dishing out addresses on 192.168.1.0/24)
Closer to my goal, but still a knowledge gap.
Thanks for reading and any input if you can see my blindspot