Mini tutorial for DSA network config

Many thanks! YOU ARE CORRECT and I was wrong. brctl now shows appropriate stuff. FYI, here is the way my /etc/config/network and /etc/config/wireless look now, and what brctl shows. (Alas Batman still doesn't work, but from the log it appears that the problem is in wpa_supplicant. I'm reporting that problem in this discussion.)

/etc/config/network:

config interface 'loopback'
	option device 'lo'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'
	option proto 'static'

config globals 'globals'
	option ula_prefix 'fdf9:f652:f605::/48'

config device
	list ports 'eth0.1'
	option name 'br-lan'
	option type 'bridge'
        option macaddr '26:9b:9b:5e:27:95'

config interface 'lan'
	option delegate '0'
	option device 'br-lan'
	# option ip6assign '60'
	option mtu '1312'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option proto 'static'
	option stp '0'

config device
	list ports 'bat0.1'
	list ports 'eth0.2'
	option macaddr '66:9b:9b:5e:27:95'
	option name 'br-wan'
	option type 'bridge'

config interface 'wan'
	option delegate '0'
	option device 'br-wan'
	option dns '192.168.150.1'
	option gateway '192.168.150.1'
	option ipaddr '192.168.150.149'
	option mtu '1312'
	option netmask '255.255.255.0'
	option proto 'static'
	option stp '0'

#config interface 'wan6'
#	option device 'eth0.2'
#	option proto 'dhcpv6'

config switch
	option enable_vlan '1'
	option name 'switch0'
	option reset '1'

config switch_vlan
	option device 'switch0'
	option ports '2 3 4 5 0t'
	option vlan '1'

config switch_vlan
	option device 'switch0'
	option ports '1 0t'
	option vlan '2'

config interface 'bat0'
       option aggregated_ogms '1'
       option ap_isolation '0'
       option bonding '0'
       option bridge_loop_avoidance '1'
       option distributed_arp_table '1'
       option fragmentation '1'
       option gw_mode 'client'
       option hop_penalty '30'
       option isolation_mark '0x00000000/0x00000000'
       option log_level '0'
       option multicast_fanout '16'
       option multicast_mode '1'
       option network_coding '0'
       option orig_interval '1000'
       option proto 'batadv'
       option routing_algo 'BATMAN_IV'

config interface 'nwi_mesh0'
	option master 'bat0'
	option mtu '1500'
	option proto 'batadv_hardif'

/etc/config/wireless:

config wifi-device 'radio0'
	option channel '36'
	option disabled '0'
	option htmode 'VHT80'
	option hwmode '11a'
	option path 'pci0000:00/0000:00:00.0'
	option txpower '23'
	option type 'mac80211'

config wifi-device 'radio1'
	option channel '1'
	option country 'US'
	option disabled '0'
	option htmode 'HT20'
	option hwmode '11g'
	option path 'platform/ahb/18100000.wmac'
	option txpower '24'
	option type 'mac80211'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option encryption 'psk2'
	option key 'XXXX'
	option macaddr '56:9b:9b:5e:27:95'
	option mode 'ap'
	option network 'lan'
	option ssid 'rpc149.rosepark.us'

config wifi-iface 'mesh0'
	option device 'radio0'
	option encryption 'psk2+ccmp'
	option key 'XXXX'
	option macaddr '36:9b:9b:5e:27:95'
	#option mesh_fwding '0'
	option mesh_id 'meshD'
	option mode 'mesh'
	option network 'nwi_mesh0'

brctl output:

root@rpc149:~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-wan          7fff.669b9b5e2795       no              bat0.1
                                                        eth0.2
br-lan          7fff.269b9b5e2795       no              wlan1
                                                        eth0.1

3 Likes