I do not use the gui so there is no point in installing it. I'd like to better understand what I'm doing from the command line. There's nothing confusing. I said I'm not familiar with the wording (I called it syntax) of the network and wireless files since I've never had to touch those.
There aren't any specific urls to share, it's just stuff I found over the Internet and in the forums that I was trying to learn from, obviously all wrong for this version of openwrt. That's the problem with so much information on the net and not doing something like this on a regular basis.
This is the original file I got from the downloaded build off of the openwrt site.
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 'fd17:78ff:5e34::/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 interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0.2'
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 '1 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
And this one is the one I'm running right now.
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
list ports 'eth0.2'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
option ip6assign '60'
option ifname 'br-lan wlan0'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
option metric '10'
option ifname 'wlan0'
config interface 'wwan'
option device 'radio0'
option proto 'none'
option metric '30'
config interface 'wlan'
option device 'radio0'
option proto 'none'
option metric '40'
Why do you have metrics?
I used metrics because I wanted the wireless to become the default route/gateway if I activated it.
Why is eth0.2 incorrectly configured for both LAN and WAN?
Lack of knowledge in this which is why I posted.
As mentioned, what I shared are where I left off, one of many tries to get this right.
That cannot be the case, unless you're not using official OpenWrt firmware.
As I mentioned before, I was testing and lost track of things and since this configuration is not something I know much about, ended up with a mess. Comparing the two, I can see some differences of course.
I'm not sure what to do about this since I got it from another device. I'm not sure this is something you can copy from one device to another.
config globals 'globals'
option ula_prefix 'fd17:78ff:5e34::/48'
Why is radio0 incorrectly assigned to 2 interfaces?
What is wlan?
Again, just stuff I found while searching, things I was trying.
This is the original wireless file.
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/10300000.wmac'
option channel '1'
option band '2g'
option htmode 'HT20'
option disabled '1'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
This post keeps getting longer and longer and I'm not sure what I've missed at this point that I should have provided. Maybe I need to find someone like a freelancer to help me since I obviously have gotten confused over time from all the mistakes I made. I would like to delete this question as useless to anyone that finds it.