So I am following a guide and switching the lan and wan as needed. I can't link it but its on the openwrt fourms.
Here's the config I am using in /etc/config/network
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
#wan port
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '100'
option ports '4 5t'
#port 1
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option ports '3 6t'
#port 2
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '2 6t'
#port 3
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
option ports '1 6t'
#port 4
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '5'
option ports '0 6t'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd37:5b45:214d::/48'
#NEW LAN config
config interface 'lan'
option ifname 'eth0'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option dns '8.8.8.8 8.8.4.4'
#Another local network on switch port 2
config interface 'someothernetwork'
option proto 'static'
option ifname 'eth1.3'
option ipaddr '192.168.8.1'
option netmask '255.255.255.0'
#new WAN
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
#Wireless
config interface 'wi'
option type 'bridge'
option _orig_ifname 'wlan0 wlan1'
option _orig_bridge 'true'
option proto 'static'
option ipaddr '192.168.6.1'
option netmask '255.255.255.0'
However after this there is no connection, I can not ssh into the router nor can I can access the luci interface. Internet does not work either. I reset the router via the connection on the back with a paper clip and then reinstall my config I made a backup of before trying this.
I want to make it so that all the ports are their own separate vlans. [meaning devices on port 1 can not ping or talk to devices on port 2,3,4 and so on. They all still need to access to the WAN]
Where am I going wrong with the config? And can you explain what is happening and how to avoid this in the future?
Thanks!
(Last edited by acdcman200 on 23 Feb 2017, 21:28)