Make Ethernet device use IOT interface

Add the following to your network config

config device
	option name 'br-iot'
	option type 'bridge'
	list ports 'eth0.3'

config switch_vlan
	option device 'switch0'
	option vlan '3'
	option vid '3'
	option ports '0t 5'

Then edit these existing stanzas to look like this:

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

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

I have made a guess that logical port 5 corresponds to physical port 4 (as labeled on the case), but that could be wrong. If so, it will likely be logical port 2 in the switch configuration. In that case...

  • put logical port 5 back into the VLAN 1 definition
  • remove port 2 from VLAN 1
  • then add logical port 2 to VLAN 3
  • and remove port 5 from VLAN 3
1 Like