Looking for /etc/config/network

Hi. I messed up my /etc/config/network file. Could someone copy/paste their file or link to a working BPI R4 version? thanks

*** so, a few hours later I think I have resolved this be renaming the network file and then creating a new one using /bin/config_generate So, I guess this is resolved. (??!!??)

This is the /etc/config/network file that I used to boot with the MP4.1 SD card from the official website. I hope it is helpful to you.

root@OpenWrt:/# 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 'fdaf:efe1:fa86::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'eth1'

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 device
        option name 'br-wan'
        option type 'bridge'
        list ports 'lan0'
        list ports 'eth2'

config interface 'wan'
        option device 'br-wan'
        option proto 'dhcp'

config interface 'wan6'
        option device 'br-wan'
        option proto 'dhcpv6'

config interface 'WWAN'
        option proto 'dhcp'
        option device 'usb0'

config interface 'WWAN6'
        option proto 'dhcpv6'
        option device 'usb0'
        option reqaddress 'try'
        option reqprefix 'auto'

config interface 'WWAN_Q'
        option proto 'dhcp'
        option device 'wwan0_1'

config interface 'WWAN6_Q'
        option proto 'dhcpv6'
        option device 'wwan0_1'
        option reqaddress 'try'
        option reqprefix 'auto'

Thank you for your quick response, that was perfect!

Blockquote Reviewing your file, It turns out I screwed up 4 lines:

config device

    option name 'br-wan'

    option type 'bridge'

    list ports 'lan0'

    list ports 'eth2'    <==== this was missing in the messed up file

config interface ‘wan’ <==== this was missing in the messed up file

    option device 'br-wan'  <==== this was missing in the messed up file

    option proto 'dhcp'   <==== this was missing in the messed up file

So, and I DO know better, I will always back up an original file before I mess with it, and I’m going to make a system backup. Again, thanks for providing exactly what I needed!