Hello,
I have configured router with openwrt as dumb-switch.
My main router is connected directly with openwrt device, working services: DHCP, DNS.
Both routers are connected with ethernet, LAN->LAN port (WAN on openwrt is not used).
My network on image (everything above green line is done and working):
Output: /etc/config/network
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 'fdc6:8181:d110::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option delegate '0'
option ipaddr '10.2.0.150'
option netmask '255.255.0.0'
option gateway '10.2.0.5'
option dns '1.1.1.1'
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0t'
Output: /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ar933x_wmac'
option htmode 'HT20'
option country 'US'
option legacy_rates '1'
option disabled '0'
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'Home'
option network 'lan'
option encryption 'psk2+ccmp'
option key ' :) '
Output: ip -4 ro
10.2.0.0/16 dev br-lan scope link src 10.2.0.150
Important!
I disabled sevices: dnsmasq, firewall, odhcpd
If I try connect to Micro-controller as a client on openwrt WiFi whole network die.
Also the default route is changing to controller only.
I want to gain acces from main router to one port on Micro-Controller (controller not need internet access). Port number is 500.
First I tried to forward port from controller - 192.168.7.1 to OpenWrt IP 10.2.0.150, but without success.
Thanks for any help,
Greetings,
Tommy