I'm using the 8devices Lima-I module and have the following problem.
I want to create a device named 'br-wan' by configuring the /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 'fdf6:726f:cf4a::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config device
option name 'br-wan'
option type 'bridge'
list ports 'eth1'
config interface 'wan'
option device 'br-wan'
option proto 'dhcp'
After restarting the network, the terminal continuously appears warnings as below.
[ 1146.493552] br-wan: received packet on eth1 with own address as source address (addr:c4:93:00:3b:9f:fb, vlan:0)
[ 1149.508383] br-wan: received packet on eth1 with own address as source address (addr:c4:93:00:3b:9f:fb, vlan:0)
[ 1152.523537] br-wan: received packet on eth1 with own address as source address (addr:c4:93:00:3b:9f:fb, vlan:0)
When I removed the 'br-wan' device and assigned the 'wan' interface directly to the 'eth1' port like the /etc/config/network file below, the warnings disappeared!
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 'fdf6:726f:cf4a::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
Could you please explain to me where I misconfigured it?
Is there anything else configured against the bridge (such as a STA mode wifi connection)?
Generally, there is no reason to use a bridge on the wan. I'm not exactly sure I could explain why that error appears, but the direct assignment of the port is usually preferred.
The only reason I would see to use a bridge on the wan would be if you needed to do a "pass-thorugh" using additional ports on your device so that you'd basicaly have a 2-ports (or more) assigned to the wan from a signaling standpoint with a connection to the wan network interface within OpenWrt. This would not be useful in most normal situations, but could be handy when you have multiple IP addresses available via the upstream (simple example: the router in question is behind another NAT router).
Have you tried just doing that without the bridge? Just create multiple "logical" interfaces on device eth1 and assign different static IP addresses... I think I did something like that in the past and it sort of worked...
Sorry for the late reply, I was busy with some other work before coming back to this topic.
And as you said, I just need to create multiple interfaces on device eth1. Thank you.