小编use*_*961的帖子

KVM 第二个私有网络(桥接),如何工作?

这似乎是一个难题。因此,我将非常感谢您的建议。我花了两天时间试图让它运行,但没有成功。(公共 IP 东西正在工作,但不是专用网络)

目标:

在 debian 挤压上使用 KVM 设置“第二个专用网络”


基础设施:

RootServer 1 = 有多个虚拟机
RootServer 2 = 有多个虚拟机
两个根服务器都有一个“公共”接口 = eth0(插入互联网)和一个“私有”接口 = eth1(直接插入交换机)
=>I只想在 10.1.0.0 网络中与其他盒子私下通信...


主机(/etc/network/interfaces)

auto  eth0
iface eth0 inet static
  address   11.11.11.91
  broadcast 11.11.11.95
  netmask   255.255.255.224
  gateway   11.11.11.65


# Private IP Adress of the HOST
auto eth1
iface eth1 inet static
  address 10.1.1.20
  broadcast 10.1.255.255
  netmask 255.255.0.0
  network 10.1.0.0


## Bridge vor Private Network
auto vbr2
iface vbr2 inet static
       address 10.1.1.21
       netmask 255.255.0.0
       pre-up brctl addbr …
Run Code Online (Sandbox Code Playgroud)

networking debian iptables bridge kvm-virtualization

4
推荐指数
1
解决办法
5010
查看次数