<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to addif to bridge automatically in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688182#M106579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have verify below commands and it works ok.&lt;/P&gt;&lt;P&gt;brctl addbr br0&lt;/P&gt;&lt;P&gt;brctl addif br0 eth0&lt;/P&gt;&lt;P&gt;brctl addif br0 usb0&lt;/P&gt;&lt;P&gt;ifconfig br0 192.168.20.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, we want to bring the bridge interface br0 up automatically, so we add some lines to&amp;nbsp;/etc/network/interfaces file as below, but system&amp;nbsp;does not add eth0 and usb0 interface into bridge. Do you know what we miss or where is the point to interpret the content of /etc/network/interfaces, and then we can printf there to see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auto br0&lt;/P&gt;&lt;P&gt;bridge_ports eth0 usb0&lt;/P&gt;&lt;P&gt;iface br0 inet static&lt;BR /&gt; address 192.168.20.1&lt;BR /&gt; netmask 255.255.255.0&lt;BR /&gt; network 192.168.20.0&lt;BR /&gt; gateway 192.168.20.100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6ull14x14evk:~# brctl show&lt;BR /&gt;bridge name bridge id STP enabled interfaces&lt;BR /&gt;br0 8000.000000000000 no&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;root@imx6ull14x14evk:~# ifconfig br0&lt;BR /&gt;br0 Link encap:Ethernet HWaddr 46:D4:97:C3:26:B0 &lt;BR /&gt; inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0&lt;BR /&gt; inet6 addr: fe80::44d4:97ff:fec3:26b0%2129824624/64 Scope:Link&lt;BR /&gt; UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1&lt;BR /&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt; TX packets:37 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt; collisions:0 txqueuelen:0 &lt;BR /&gt; RX bytes:0 (0.0 B) TX bytes:6708 (6.5 KiB)&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6ull14x14evk:~"&gt;root@imx6ull14x14evk:~# &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2017 09:59:55 GMT</pubDate>
    <dc:creator>stevenyu</dc:creator>
    <dc:date>2017-07-07T09:59:55Z</dc:date>
    <item>
      <title>How to addif to bridge automatically</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688182#M106579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have verify below commands and it works ok.&lt;/P&gt;&lt;P&gt;brctl addbr br0&lt;/P&gt;&lt;P&gt;brctl addif br0 eth0&lt;/P&gt;&lt;P&gt;brctl addif br0 usb0&lt;/P&gt;&lt;P&gt;ifconfig br0 192.168.20.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, we want to bring the bridge interface br0 up automatically, so we add some lines to&amp;nbsp;/etc/network/interfaces file as below, but system&amp;nbsp;does not add eth0 and usb0 interface into bridge. Do you know what we miss or where is the point to interpret the content of /etc/network/interfaces, and then we can printf there to see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auto br0&lt;/P&gt;&lt;P&gt;bridge_ports eth0 usb0&lt;/P&gt;&lt;P&gt;iface br0 inet static&lt;BR /&gt; address 192.168.20.1&lt;BR /&gt; netmask 255.255.255.0&lt;BR /&gt; network 192.168.20.0&lt;BR /&gt; gateway 192.168.20.100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6ull14x14evk:~# brctl show&lt;BR /&gt;bridge name bridge id STP enabled interfaces&lt;BR /&gt;br0 8000.000000000000 no&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;root@imx6ull14x14evk:~# ifconfig br0&lt;BR /&gt;br0 Link encap:Ethernet HWaddr 46:D4:97:C3:26:B0 &lt;BR /&gt; inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0&lt;BR /&gt; inet6 addr: fe80::44d4:97ff:fec3:26b0%2129824624/64 Scope:Link&lt;BR /&gt; UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1&lt;BR /&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt; TX packets:37 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt; collisions:0 txqueuelen:0 &lt;BR /&gt; RX bytes:0 (0.0 B) TX bytes:6708 (6.5 KiB)&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6ull14x14evk:~"&gt;root@imx6ull14x14evk:~# &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 09:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688182#M106579</guid>
      <dc:creator>stevenyu</dc:creator>
      <dc:date>2017-07-07T09:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to addif to bridge automatically</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688183#M106580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that ethernet bridge should be configured when no IP addresses are assigned to ethernet interfaces.&lt;BR /&gt;So you can add ethernet bridge configuration into system init scripts prior to IP configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 02:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688183#M106580</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2017-07-11T02:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to addif to bridge automatically</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688184#M106581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bridge interface br0 is up already, but there are no interfaces like eth0 or usb0.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auto br0&lt;BR /&gt;iface br0 inet static&lt;BR /&gt; &lt;STRONG&gt;bridge_ports eth0 usb0&lt;/STRONG&gt;&lt;BR /&gt; address 192.168.20.1&lt;BR /&gt; netmask 255.255.255.0&lt;BR /&gt; gateway 192.168.20.100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6ull14x14evk:~# &lt;STRONG&gt;ifconfig br0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;br0 Link encap:Ethernet HWaddr 96:2A:05:11:59:93 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; inet addr:192.168.20.1&lt;/STRONG&gt; Bcast:192.168.20.255 Mask:255.255.255.0&lt;BR /&gt; UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1&lt;BR /&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt; TX packets:14 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt; collisions:0 txqueuelen:0 &lt;BR /&gt; RX bytes:0 (0.0 B) TX bytes:2459 (2.4 KiB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6ull14x14evk:~# &lt;STRONG&gt;brctl show&lt;/STRONG&gt;&lt;BR /&gt;bridge name bridge id STP enabled interfaces&lt;BR /&gt;br0 8000.000000000000 no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we add interface manually, it can be added to bridge successfully. We don't know why bridge_ports not work correctly?&lt;BR /&gt;root@imx6ull14x14evk:~# &lt;STRONG&gt;brctl addif br0 eth0&lt;/STRONG&gt;&lt;BR /&gt;device eth0 entered promiscuous mode&lt;BR /&gt;root@imx6ull14x14evk:~# &lt;STRONG&gt;brctl addif br0 usb0&lt;/STRONG&gt;&lt;BR /&gt;device usb0 entered promiscuous mode&lt;BR /&gt;br0: port 2(usb0) entered forwarding state&lt;BR /&gt;br0: port 2(usb0) entered forwarding state&lt;BR /&gt;root@imx6ull14x14evk:~# &lt;STRONG&gt;brctl show&lt;/STRONG&gt;&lt;BR /&gt;bridge name bridge id STP enabled &lt;STRONG&gt;interfaces&lt;/STRONG&gt;&lt;BR /&gt;br0 8000.00049f04b69f no &lt;STRONG&gt;eth0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;usb0&lt;/STRONG&gt;&lt;BR /&gt;root@imx6ull14x14evk:~# &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 02:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/688184#M106581</guid>
      <dc:creator>stevenyu</dc:creator>
      <dc:date>2017-07-11T02:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to addif to bridge automatically</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/1895815#M225616</link>
      <description>&lt;P&gt;Have you solved this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-addif-to-bridge-automatically/m-p/1895815#M225616</guid>
      <dc:creator>Ypi</dc:creator>
      <dc:date>2024-06-28T09:21:29Z</dc:date>
    </item>
  </channel>
</rss>

