Just wanted to create a network bridge interface on an embedded Linux system. First try was with the well known brctl
and I got this:
1 2 |
$ brctl addbr br0 add bridge failed: Package not installed |
Searching the web for this, led me to an old blog post which comes to this conclusion:
ip from busybox is a little more helpful on that:So that’s the most silly way to say: you forgot to compile in bridge support into your kernel.
1 2 |
$ /sbin/ip link add name br0 type bridge ip: RTNETLINK answers: Operation not supported |
And yes, the “real” ip
from iproute2 is also as helpful as that:
1 2 |
$ /usr/sbin/ip link add name br0 type bridge RTNETLINK answers: Operation not supported |
And yes, somehow they are all right, it is actually my fault:
1 |
# CONFIG_BRIDGE is not set |
I’m going to change my kernel config now …