Hello,
I have been working with the T2080RDB board and am trying to configure a bridge between two disconnected networks
After enabling the board I successfully create a bridge with the following commands:
brctl addbr br0
brctl addif br0 fm1-mac10 fm1-mac3
ip link set fm1-mac10 up
ip link set fm1-mac3 up
ip link set br0 up
ip addr add 192.168.1.60/24 brd + dev br0
I now have full communication between the device connected through fm1-mac10 and fm1-mac3. I am trying to initialize this bridge un boot up automatically. I have been editing the /etc/network/interfaces file, which looks like so:
# The loopback interface
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.1.60
netmask 255.255.255.0
bridge_ports fm1-mac3 fm1-mac10
bridge_stp off
bridge_fd 0
bridge_maxwait 0
This should, by everything ive researched online, initialize a bridge on boot up but it has not been successful thus far. I tried adding the following lines to the /etc/network/interfaces file to see if anything changed but everything remained the same on boot up:
auto fm1-mac10
iface fm1-mac10 inet manual
auto fm1-mac3
iface fm1-mac3 inet manual
Any help on this matter would be much appreciated as I do not know what else to try
Thanks in advance!
Best,
Matias Lirman
Hello Matias Lirman,
Please refer to the following content of /etc/network/interfaces.
# The loopback network interface
auto lo br0
iface lo inet loopback
# Set up interfaces manually
iface fm1-mac3 inet manual
iface fm1-mac10 inet manual
# Bridge setup
iface br0 inet static
bridge_ports fm1-mac3 fm1-mac10
address 192.168.1.60
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
Please rebuild package init-ifupdown into rootfs filesystem.
$bitbake init-ifupdown -c cleansstate
$bitbake init-ifupdown -c patch
Go the folder build_t2080rdb/tmp/work/ppce6500-fsl-linux/init-ifupdown/1.0-r7/interfaces, please modify the file interfaces as mentioned above.
$bitbake init-ifupdown
$bitbake fsl-image-core
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------