0
点赞
收藏
分享

微信扫一扫

qemu虚拟机如何配置网桥

janedaring 2022-02-18 阅读 79

要用到bridge-utils 库没有的安装下

apt-get update
apt-get install bridge-utils 

bridge 命令参考该链接
然后是在宿主机搭设网桥,其中br0 是新增网卡,与主机目前使用主网卡桥接eth0(这个可以ifconfig 查看)
brctl addbr br0
brctl addif br0 enp3s0
brctl stp br0 on
ifconfig enp3s0 0 up
ifconfig br0 up
dhclient br0
你搭设好之后在宿主机查看

举报

相关推荐

0 条评论