正在考虑建立一个桥接网络我从 Wi-Fi 切换到有线连接。然而,我的网络与描述不同:
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
我可以并且应该添加The primary network interface
as描述?
一般参考:
答案1
这适用于virsh
(更确切地说virt-install
):
$ sudo ifup br0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/br0/c8:9c:dc:28:86:ca
Sending on LPF/br0/c8:9c:dc:28:86:ca
Sending on Socket/fallback
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 3 (xid=0x6a928a4c)
DHCPREQUEST of 192.168.1.6 on br0 to 255.255.255.255 port 67 (xid=0x4c8a926a)
DHCPOFFER of 192.168.1.6 from 192.168.1.1
DHCPACK of 192.168.1.6 from 192.168.1.1
bound to 192.168.1.6 -- renewal in 37710 seconds.
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto br0
iface br0 inet dhcp
bridge_ports eno1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
iface eno1 inet manual