ip link add 给我一个不支持的错误

apu*_*ard 6 routing ip kernel iproute

我想像这样用 iproute2 建立一个网桥:

Adding bridge : ip link add name br0 type bridge
Bringing bridge UP : ip link set dev br0 up
Adding interface to bridge : ip link set dev eth1 master br0
Bringing interface UP. : ip link set dev eth1 up
Run Code Online (Sandbox Code Playgroud)

但是第一行已经给了我一个错误。
它说:

RTNETLINK answers: Operation not supported
Run Code Online (Sandbox Code Playgroud)

我发现它可能与正在运行的内核有关。但我不知道如何检查或编辑我需要编辑的文件。

那是我从中获得内核信息的帖子:https :
//superuser.com/questions/232807/iproute2-not-functioning-rtnetlink-answers-operation-not-supported

小智 1

请在 Linux 内核中启用以太网桥接,如下所示。

[*] Networking support  --->
 Networking options  --->
  <*> 802.1d Ethernet Bridging
Run Code Online (Sandbox Code Playgroud)