Good morning. I hope someone is willing to humor me in my ignorant learning endeavor.
One thing I mentioned earlier was that my config changes would not "stick", it does help if I use uci to commit the changes and init.d to restart the network.
(I haven't fully absorbed this, but it's the right stuff to be reading...) Openwrt Guide uci
I needed a little push to better comprehend some vlan basics., so I played around with the web interface, creating vlans on ports 1-4 and manipulating tagged/untagged and pvids and observing the changes to the /etc/config files.
I think I have enough understanding to create a port with tagged vlans on it that go back to my glinet router where I can setup the vlan routing (will be another learning curve) and multiple untagged ports with the desired vlan as the pvid so that non-vlan aware devices are put on the right network.
This config demonstrates with a GLinet router serving up dhcp on a tagged vlan to port 1 of this ER05, I can connect to port 2 and recieve an IP from the GLinet on my untaged NIC and another address on my tagged NIC.
Connecting to port 4 I still get the vlan100 ip from the glinet on the untagged NIC and a ER505 vlan10 IP on my tagged nic.
Is it possible to assign port 0 of the switch to the lan rather than wan so I can use it? Also, should I make it a trunk? Do I need to make some virtual interface to keep the rest of the ER605 happy while I use the switch as a vlan switch?
My current config while testing (sticks, lol):
config interface_mode 'global'
option switch_enable '1'
option singlewan '0'
option wan_ifname 'eth1.4094|eth1.4093|eth1.4092|eth1.4091'
option lan_ifname 'eth0.1|eth0.1|eth0.1|eth0.1'
option lan_device 'eth0'
option wan_device 'eth1'
option wanmode '1'
option wan_numbers '1'
config t_has_switch 'switch'
option lan_vlan_id '1|1|1|1'
option wan_vlan_id '4094|4093|4092|4091'
option lan_ports_value '2 3 4 5|3 4 5|4 5|5'
option wan_ports_value '1|1 2|1 2 3|1 2 3 4'
option lan_cpu_port '6'
option wan_cpu_port '5'
config interface 'wan1_eth'
option t_type 'physical'
option t_name 'wan1_eth'
option t_issys '1'
option t_reference '0'
option dbroadcast '1'
option reqopts '33 121 249'
option uplink '1000000'
option downlink '1000000'
option macaddr '4D:41:43:BB:BB:BB'
option t_factory_mac '4D:41:43:BB:BB:BB'
option mtu '1500'
option t_dhcp_mtu '1500'
option peerdns '1'
option proto 'dhcp'
option ifname 'eth1.4094'
config interface 'pseudo_wan1_eth'
option proto 'none'
option parent 'wan1_eth'
option ipaddr '168.254.83.253'
option netmask '255.255.255.255'
config interface 'wan1_poe'
option t_bindif 'eth1'
option metric '0'
option t_name 'wan1_poe'
option lcpechofailure '5'
option auto '0'
option peerdns '1'
option t_linktype 'auto'
option t_reference '0'
option mru '1492'
option t_type 'pppoe'
option lcpechointerval '10'
option t_issys '0'
option t_poe_enable '0'
option parent 'wan1_eth'
option uplink '1000000'
option downlink '1000000'
option conn_mode '0'
option conn_start '0'
option conn_interval '0'
option redail '0'
config interface 'wan2_eth'
option t_type 'physical'
option t_name 'wan2_eth'
option t_issys '1'
option t_reference '0'
option dbroadcast '1'
option reqopts '33 121 249'
option uplink '1000000'
option downlink '1000000'
option macaddr '4D:41:43:CC:CC:CC'
option t_factory_mac '4D:41:43:CC:CC:CC'
option mtu '1500'
option t_dhcp_mtu '1500'
option peerdns '1'
option proto 'none'
config interface 'pseudo_wan2_eth'
option proto 'none'
option parent 'wan2_eth'
option ipaddr '168.254.83.253'
option netmask '255.255.255.255'
config interface 'wan2_poe'
option t_bindif 'eth1'
option metric '0'
option t_name 'wan2_poe'
option lcpechofailure '5'
option auto '0'
option peerdns '1'
option t_linktype 'auto'
option t_reference '0'
option mru '1492'
option t_type 'pppoe'
option lcpechointerval '10'
option t_issys '0'
option t_poe_enable '0'
option parent 'wan2_eth'
option uplink '1000000'
option downlink '1000000'
option conn_mode '0'
option conn_start '0'
option conn_interval '0'
option redail '0'
config interface 'wan3_eth'
option t_type 'physical'
option t_name 'wan3_eth'
option t_issys '1'
option t_reference '0'
option dbroadcast '1'
option reqopts '33 121 249'
option uplink '1000000'
option downlink '1000000'
option macaddr '4D:41:43:DD:DD:DD'
option t_factory_mac '4D:41:43:DD:DD:DD'
option proto 'none'
config interface 'pseudo_wan3_eth'
option proto 'none'
option parent 'wan3_eth'
option ipaddr '168.254.83.253'
option netmask '255.255.255.255'
config interface 'wan3_poe'
option t_bindif 'eth1'
option metric '0'
option t_name 'wan3_poe'
option lcpechofailure '5'
option auto '0'
option peerdns '1'
option t_linktype 'auto'
option t_reference '0'
option mru '1492'
option t_type 'pppoe'
option lcpechointerval '10'
option t_issys '0'
option t_poe_enable '0'
option parent 'wan3_eth'
option uplink '1000000'
option downlink '1000000'
option conn_mode '0'
option conn_start '0'
option conn_interval '0'
option redail '0'
config interface 'wan4_eth'
option t_type 'physical'
option t_name 'wan4_eth'
option t_issys '1'
option t_reference '0'
option dbroadcast '1'
option reqopts '33 121 249'
option uplink '1000000'
option downlink '1000000'
option macaddr '4D:41:43:EE:EE:EE'
option t_factory_mac '4D:41:43:EE:EE:EE'
option proto 'none'
config interface 'pseudo_wan4_eth'
option proto 'none'
option parent 'wan4_eth'
option ipaddr '168.254.83.253'
option netmask '255.255.255.255'
config interface 'wan4_poe'
option t_bindif 'eth1'
option metric '0'
option t_name 'wan4_poe'
option lcpechofailure '5'
option auto '0'
option peerdns '1'
option t_linktype 'auto'
option t_reference '0'
option mru '1492'
option t_type 'pppoe'
option lcpechointerval '10'
option t_issys '0'
option t_poe_enable '0'
option parent 'wan4_eth'
option uplink '1000000'
option downlink '1000000'
option conn_mode '0'
option conn_start '0'
option conn_interval '0'
option redail '0'
config interface 'lan'
option t_type 'physical'
option t_name 'lan'
option t_issys '1'
option t_reference '0'
option proto 'static'
option type 'bridge'
option ifname 'veth0'
option ipaddr '169.254.11.21'
option ippeer '169.254.11.22'
option netmask '255.255.255.252'
option macaddr '4D:41:43:AA:AA:AA'
option t_factory_mac '4D:41:43:AA:AA:AA'
config interface 'loopback'
option ipaddr '127.0.0.1'
option proto 'static'
option netmask '255.0.0.0'
option ifname 'lo'
config switch 'switch0'
option name 'switch0'
option reset '1'
option enable_vlan '1'
option port_map '6 5 0 1 2 3 4'
config switch_port 'port0'
option port '0'
option device 'switch0'
option type 'general'
option logical '1'
option tag '1'
option pvid '4094'
config switch_port 'port1'
option port '1'
option device 'switch0'
option type 'general'
option logical '2'
option tag '1'
option pvid '10'
config switch_port 'port2'
option port '2'
option device 'switch0'
option type 'general'
option logical '3'
option tag '1'
option pvid '100'
config switch_port 'port3'
option port '3'
option device 'switch0'
option type 'general'
option logical '4'
option tag '1'
option pvid '10'
config switch_port 'port4'
option port '4'
option device 'switch0'
option type 'general'
option logical '5'
option tag '1'
option pvid '10'
config switch_port 'port5'
option port '5'
option device 'switch0'
option type 'trunk'
option tag 't'
option pvid '0'
config switch_port 'port6'
option port '6'
option device 'switch0'
option type 'trunk'
option tag 't'
option pvid '10'
config switch_vlan 'vlan0'
option device 'switch0'
option vlan '0'
option name 'vlan0'
option users 'system'
config switch_vlan 'vlan4094'
option device 'switch0'
option vlan '4094'
option name 'vlan4094'
option ports '0 5t'
option users 'wan'
config switch_vlan 'vlan10'
option device 'switch0'
option vlan '10'
option name 'vlan10'
option prio '0'
option users 'lan'
option ports '1t 4t 2t 3t 6t'
option desc 'ER605'
config switch_vlan 'vlan100'
option device 'switch0'
option vlan '100'
option name 'vlan100'
option users 'web'
option ports '1t 4t 2t 3t'
option desc 'GLinet'
config network 'global'
option need_restart 'on'
config port 'mirror'
option state 'off'
option mode 'both'
option mirrorport '5'
option mirroredports '1'
config port 'port1'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '0'
option port_id '0'
option pvlan_id '7'
config port 'port2'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '1'
option port_id '1'
option pvlan_id '1'
config port 'port3'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '2'
option port_id '2'
option pvlan_id '1'
config port 'port4'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '3'
option port_id '3'
option pvlan_id '1'
config port 'port5'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option pvlan_id '1'
option switch_dev 'switch0'
option phy_index '4'
option port_id '4'
config led_set 'led_set'
option enable 'on'
config vinterface 'vwan'
option ifname 'veth1'
option ipaddr '169.254.11.22'
option ippeer '169.254.11.21'
option netmask '255.255.255.252'
config vinterface 'NETWORK10'
option ifname 'eth0.10'
option netmask '255.255.255.0'
option dhcp_end '192.168.10.199'
option vlanid '10'
option cid '1'
option dhcp_on '1'
option dhcp_guard_enable '0'
option system '1'
option name 'LAN'
option ipaddr '192.168.10.1'
option igmp_snooping '1'
option ports '2 3 4 5'
option dhcp_dnsmode 'manual'
option zone 'LAN10'
option dhcp_dns '0.0.0.0'
option dhcp_release_time '120m'
option ipv6_on '0'
option dhcp_start '192.168.10.100'
option dhcp_gateway '192.168.10.1'
What I think I can change to make port 0 available (I feel like I need to make some changes in Network also, and could delete the multi wan interfaces)
config switch 'switch0'
option name 'switch0'
option reset '1'
option enable_vlan '1'
option port_map '6 5 0 1 2 3 4'
config switch_port 'port0'
option port '0'
option device 'switch0'
option type 'general'
option logical '1'
option tag 't'
option pvid '10'
config switch_port 'port1'
option port '1'
option device 'switch0'
option type 'general'
option logical '2'
option tag '1'
option pvid '10'
config switch_port 'port2'
option port '2'
option device 'switch0'
option type 'general'
option logical '3'
option tag '1'
option pvid '100'
config switch_port 'port3'
option port '3'
option device 'switch0'
option type 'general'
option logical '4'
option tag '1'
option pvid '10'
config switch_port 'port4'
option port '4'
option device 'switch0'
option type 'general'
option logical '5'
option tag '1'
option pvid '10'
config switch_port 'port5'
option port '5'
option device 'switch0'
option type 'trunk'
option tag 't'
option pvid '0'
config switch_port 'port6'
option port '6'
option device 'switch0'
option type 'trunk'
option tag 't'
option pvid '10'
config switch_vlan 'vlan0'
option device 'switch0'
option vlan '0'
option name 'vlan0'
option users 'system'
config switch_vlan 'vlan4094'
option device 'switch0'
option vlan '4094'
option name 'vlan4094'
option ports '5t'
option users 'wan'
config switch_vlan 'vlan10'
option device 'switch0'
option vlan '10'
option name 'vlan10'
option prio '0'
option users 'lan'
option ports '0t 1t 4t 2t 3t 6t'
option desc 'ER605'
config switch_vlan 'vlan100'
option device 'switch0'
option vlan '100'
option name 'vlan100'
option users 'web'
option ports '0t 1t 4t 2t 3t'
option desc 'GLinet'
config network 'global'
option need_restart 'on'
config port 'mirror'
option state 'off'
option mode 'both'
option mirrorport '5'
option mirroredports '1'
config port 'port1'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '0'
option port_id '0'
option pvlan_id '1'
config port 'port2'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '1'
option port_id '1'
option pvlan_id '1'
config port 'port3'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '2'
option port_id '2'
option pvlan_id '1'
config port 'port4'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option switch_dev 'switch0'
option phy_index '3'
option port_id '3'
option pvlan_id '1'
config port 'port5'
option port_state 'on'
option flowcontrol 'off'
option negotiation_mode 'auto'
option ingress_state 'off'
option ingress_mode 'all'
option ingress_rate '1000'
option egress_state 'off'
option egress_rate '1000'
option pvlan_id '1'
option switch_dev 'switch0'
option phy_index '4'
option port_id '4'
config led_set 'led_set'
option enable 'on'