Hi,
I have been at this on and off for over a week, ( in between my fun with my other openwrt box ), but I cannot get my head around Openwrt naming conventions even after I read an article about the way of naming devices and interfaces and how this differs in openwrt. I do not get. There is an intelligence test going on, and I failed:-
I have got an Archer MR200. It has a LTE modem in it with no working SIM card. I installed OpenWrt 22.03.2 some years ago. It has these ports on the back LAN 1, 2,3,4(wan).
I did a factory reset.
Currently, I plugged my note book into one of the ports lan2, and got an address from dhcp. 192.168.1.201, and I can log into LUCI and with SSH. Access works.
I renamed the lte usb devices from wan and wan6 to lte and lte6.
Question1: How can I configure the RJ45 port called LAN4 ( probably should be called eth3 ) to act as a WAN port and get a DHCP address from my upstream EdgeRouter?
Question2: How can I get the traffic from LAN 1,2,3 and wifi-iface 'default_radio0' and wifi-iface 'default_radio1' to send all the traffic up to the WAN port to the Edgerouter? ( the EdgeRouter should just route it upstream to the ISP).
I know ideally I should let the EdgeRouter take care of the DHCP/firewall/traffic shaping/vlans etc etc, but having reviewed many openwrt configurations I conclude: I am thick, and the boat set sail years ago but I was not onboard. So please do humour me. Keep It Simple Stupid comes into play on a different level. That EdgeRouter config is actually simple compared with OpenWrt: You lot have got the brains.
Some little change to this config might well work, but I do not understand the config:
Wireless
# awk NF wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
option band '5g'
option htmode 'VHT80'
option country 'PA'
option cell_density '3'
option channel '104'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'sae-mixed'
option key 'xxxxxxx'
option ssid 'fly50_nomap'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/10180000.wmac'
option band '2g'
option cell_density '0'
option country 'PA'
option htmode 'HT40'
option channel '13'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option encryption 'psk-mixed+ccmp'
option key 'xxxxxxx'
option ssid 'fly20_nomap'
Network
# awk NF 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 'fd8e:cb38:1235::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
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 device
option name 'usb0'
option macaddr '18:d6:c7:c4:45:42'
config interface 'lte4'
option device 'usb0'
option proto 'dhcp'
config interface 'lte6'
option device 'usb0'
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 '0 1 2 3 6t'