Hi Victor,
The bridge interface br0 is up already, but there are no interfaces like eth0 or usb0.
Some network document mention bridge_ports can be used to add interface as below, but it looks like not work in yocto. Any problem in my configuration?
auto br0
iface br0 inet static
bridge_ports eth0 usb0
address 192.168.20.1
netmask 255.255.255.0
gateway 192.168.20.100
root@imx6ull14x14evk:~# ifconfig br0
br0 Link encap:Ethernet HWaddr 96:2A:05:11:59:93
inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:2459 (2.4 KiB)
root@imx6ull14x14evk:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000000000000 no
If we add interface manually, it can be added to bridge successfully. We don't know why bridge_ports not work correctly?
root@imx6ull14x14evk:~# brctl addif br0 eth0
device eth0 entered promiscuous mode
root@imx6ull14x14evk:~# brctl addif br0 usb0
device usb0 entered promiscuous mode
br0: port 2(usb0) entered forwarding state
br0: port 2(usb0) entered forwarding state
root@imx6ull14x14evk:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00049f04b69f no eth0
usb0
root@imx6ull14x14evk:~#
Regards,
Steven Yu