Flint 2 modify LAN config

Hi everyone, I have a flint2 and my main network has ip 192.168.10.0/24.

I created a wireless network with ip 192.168.11.0/24 and everything works.
Now I would like to add to this wireless the LAN port 5 (removing it from 10.0).

How should I proceed?

This Is my network conf:

root@GL-MT6000:~# cat /etc/config/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 'fd9d:8f56:3687::/48'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        option macaddr '94:83:c4:a2:b9:96'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'
        list ports 'lan5'

config device
        option name 'lan1'
        option macaddr '94:83:c4:a2:b9:96'

config device
        option name 'lan2'
        option macaddr '94:83:c4:a2:b9:96'

config device
        option name 'lan3'
        option macaddr '94:83:c4:a2:b9:96'

config device
        option name 'lan4'
        option macaddr '94:83:c4:a2:b9:96'

config device
        option name 'lan5'
        option macaddr '94:83:c4:a2:b9:96'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option isolate '0'
        option ipaddr '192.168.10.254'

config device
        option macaddr '94:83:c4:a2:b9:94'
        option name 'eth1.835'

config interface 'wan'
        option force_link '0'
        option ipv6 '0'
        option classlessroute '0'
        option metric '10'
        option device 'eth1.835'
        option proto 'pppoe'
        option username 'xxxx'
        option password 'xxxx'

config interface 'wan6'
        option proto 'dhcpv6'
        option device '@wan'
        option disabled '1'

config interface 'guest'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.9.1'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option multicast_querier '1'
        option igmp_snooping '0'
        option isolate '0'
        option bridge_empty '1'
        option disabled '0'

config rule 'policy_relay_lo_rt_lan'
        option lookup '16800'
        option in 'loopback'
        option priority '1'

config interface 'tethering6'
        option device '@tethering'
        option proto 'dhcpv6'
        option disabled '1'

config interface 'wwan6'
        option device '@wwan'
        option proto 'dhcpv6'
        option disabled '1'

config interface 'wwan'
        option proto 'dhcp'
        option classlessroute '0'
        option metric '20'

config interface 'secondwan'
        option ipv6 '0'
        option proto 'dhcp'
        option metric '15'
        option force_link '0'
        option classlessroute '0'

config interface 'secondwan6'
        option proto 'dhcpv6'
        option device '@secondwan'
        option disabled '1'
        option metric '15'

config rule 'policy_direct_rt'
        option lookup 'main'
        option suppress_prefixlength '0'
        option priority '1100'

config rule 'policy_default_rt_vpn'
        option mark '0x8000/0xc000'
        option lookup '8000'
        option priority '1101'
        option invert '1'

config rule6 'policy_direct_rt6'
        option lookup 'main'
        option suppress_prefixlength '0'
        option priority '1100'

config rule6 'policy_default_rt_vpn6'
        option mark '0x8000/0xc000'
        option lookup '8000'
        option priority '1101'
        option invert '1'

config rule 'policy_default_rt_vpn_ts'
        option lookup 'main'
        option priority '1099'
        option mark '0x80000/0xc0000'
        option invert '0'

config interface 'wgserver'
        option proto 'wgserver'
        option config 'main_server'
        option disabled '0'

config interface 'iot'
        option proto 'static'
        option device 'br-iot'
        option ipaddr '192.168.11.254'
        option netmask '255.255.255.0'

config device
        option type 'bridge'
        option name 'br-iot'
        option bridge_empty '1'

config interface 'ont'
        option proto 'static'
        option device 'eth1'
        option ipaddr '192.168.1.2'
        option netmask '255.255.255.0'

Thanks

Remove lan5 from br-lan and add it to br-iot?

2 Likes

ok thanks. I don't have much experience with configuring openwrt and I didn't want to cause any damage

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.