On Thu, May 3, 2018 at 10:11 AM, Jiri Pirko <j...@resnulli.us> wrote: > Thu, May 03, 2018 at 08:50:52AM CEST, ransha...@gmail.com wrote: >>On Wed, May 2, 2018 at 11:56 PM, Andrew Lunn <and...@lunn.ch> wrote: >>> On Wed, May 02, 2018 at 11:20:05PM +0300, Ran Shalit wrote: >>>> Hello, >>>> >>>> Is it possible to use switch just like external real switch, >>>> connecting all ports to the same subnet ? >>> >>> Yes. Just bridge all ports/interfaces together and put your host IP >>> address on the bridge. >>> >>> Andrew >> >> >>Hi, >> >>I get error on trying to add bridge. >>I am trying to =understand which configuration is missing probably in my >>kernel, >> I ran strace, but not sure , does it point to any missing configuration ? >> >>root@dm814x-evm:~# ip link add br0 type bridge > > Is the bridge module enabled in the kernel config? Yes, I've also added all configuration listed in https://www.thelinuxfaq.com/355-rtnetlink-answers-operation-not-supported-on-centos (we old kernel 2.6.37, which support TI's chip)
> > >>RTNETLINK answers: Operation not supported I've managed doing it with brctl instead and it seems to work fine. ifconfig lan0 0.0.0.0 ifconfig lan1 0.0.0.0 ifconfig lan2 0.0.0.0 ifconfig lan3 0.0.0.0 brctl addbr br0 brctl addif br0 lan0 brctl addif br0 lan1 brctl addif br0 lan2 brctl addif br0 lan3 ifconfig br0 150.42.40.222 Yet, brctl command seems to take time (about a second till it returns), and we have a requirement for fast boot, So, I wander why " ip link add br0 type bridge" command gave those errors. I also notice in the strace I've pasted here the following: open("/usr/lib//ip/link_bridge.so", O_RDONLY) = -1 ENOENT (No such file or directory) There is really no such file in my filesystem /usr/lib//ip/link_bridge.so. Why is it missing ? Thank you, ranran