首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到有ifupdown的桥接装置

找不到有ifupdown的桥接装置
EN

Unix & Linux用户
提问于 2021-02-13 16:23:43
回答 1查看 980关注 0票数 1

请注意,我使用的是Void。

这是我的/etc/network/interfaces.d/br0文件:

代码语言:javascript
复制
auto br0
iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
        bridge_waitport 0
        bridge_fd 0

但是,在引导时,我得到了以下错误:

代码语言:javascript
复制
=> Bringing up the network
Internet Systems Consortium DHCP Client 4.4.2
Copyright 2004-2020 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "br0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging.

exiting.
ifup: failed to bring up br0

我已经确认我已经安装了bridge-utils。我不知道这里的问题是什么。我会很感激你的帮助。

EN

回答 1

Unix & Linux用户

发布于 2021-05-02 09:00:21

(这确实是一个“评论”,不是和回答,但它不适合在评论部分)

ifup似乎没有创建“场景背后”的桥接界面。

我希望它这样做:

代码语言:javascript
复制
ip link add name brLAN type bridge
ip link set brLAN up
ip link set eno1 master brLAN
ip link set eno1 up

如果桥梁使用dhcp,那么:

代码语言:javascript
复制
dhclient brLAN
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/634290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档