gpt4 book ai didi

networking - 设置虚拟网桥 : Cannot find device "br0"

转载 作者:行者123 更新时间:2023-12-01 04:37:12 24 4
gpt4 key购买 nike

中使用以下配置在 Ubuntu 中设置虚拟网桥/etc/network/interfaces

auto brOffline 
iface brOffline inet static
address 192.168.5.10
netmask 255.255.255.0
bridge_ports eth11
bridge_stp off
bridge_fd 0.0
pre-up ifdown eth11
pre-up ifup eth11
post-down ifdown eth11

代码:创建桥接接口(interface)。每个网桥都需要一个适配器,这里是我的物理网卡 eth11。以确保它正在工作,使界面再次下降和上升。

导致网络服务重新启动...
service networking restart
service networking status

... 显示类似于 的错误
 ifup[2304]: Cannot find device "brOnline"
dhclient[2330]: Error getting hardware address for "brOffline": No such device

如果您的界面被称为标准 br0 听起来像:
 default:
Error getting hardware address for "br0": No such device

最佳答案

未安装桥实用程序

我从一个系统转移到另一个系统。目标操作系统是新安装的 17.10。缺少的是桥梁实用程序:

sudo apt-get install -y bridge-utils

由于缺少工具,根本无法创建这座桥......

现在 ifconfig展示我 Shiny 的桥
brOffline: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 192.168.5.10 netmask 255.255.255.0 broadcast 192.168.5.255
inet6 fe80::6a05:caff:fe51:8eff prefixlen 64 scopeid 0x20<link>
ether 68:05:ca:51:8e:ff txqueuelen 1000 (Ethernet)
RX packets 2 bytes 501 (501.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 107 bytes 10316 (10.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Hint which helped me to find the solution

关于networking - 设置虚拟网桥 : Cannot find device "br0",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47552616/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com