在没有在Debian中configuration的IP的情况下启动XEN dom0的networking接口

我有3个网卡,我希望被我的domU看到,即使它们没有在dom0中configuration。

这是我的接口文件的示例行

汽车
 iface lo inet loopback

 #本地networking,标有M3的电缆
 auto eth0
 allow-hotplug eth0
 iface eth0 inet static
        地址192.168.1.184
        networking掩码255.255.255.0
        网关192.168.1.1

 #标有M1的电缆
 auto eth1
 allow-hotplug eth1
 iface eth1 inet手册
         hwaddress ether 00:19:5B:33:86:D5
         up ifconfig eth1 up

 #标有M2的电缆
 auto eth2
 allow-hotplug eth2
 iface eth2 inet手册
         hwaddress ether 00:19:5B:33:86:D3
         up ifconfig eth2 up

我试图用xend使用多个网桥configuration,但它抱怨“链接不在运行状态”和接口closures,虽然我可以看到他们在ifconfigs的输出。

我有什么select使这些网卡在domU中可见,而无需在dom0中configuration它们?

哦亲爱的…我想你正在尝试使用Xen桥接的东西,这是非常可怕的。 在xend-config.sxp中设置network-script network-dummy ,然后使用以下configuration:

 iface lo iface lo inet loopback # Local network, cable labeled M3 auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.1.184 netmask 255.255.255.0 gateway 192.168.1.1 # cable labeled M1 iface eth1 inet manual hwaddress ether 00:19:5B:33:86:D5 # cable labeled M2 iface eth2 inet manual hwaddress ether 00:19:5B:33:86:D3 auto br-eth1 iface br-eth1 inet manual bridge_ports eth1 auto br-eth2 iface br-eth2 inet manual bridge_ports eth2 

然后你要做的就是告诉domU使用br-eth1br-eth2桥(如适用)。 考虑到你已经有了电缆标签,我会把电桥的名字改成更有用的,比如m1m2