On 11 April 2012 10:44, Chen Fu <chenfu@servst.com> wrote:> I have a server with Debian and its IP:222.28.246.107 > > With Xen enable, two VM are created with IP 222.28.246.108, 222.28.246.109 > > The among them can communication ,but the two VM cannot communicate to > outsite ,such as 8.8.8.8.Hi! It seems to be a gateway problem. Please post the output of ''route'' command both on your dom0 and your domUs. -- Flavio
Chen Fu wrote:>iface eth0 inet static >address 222.28.246.107 >netmask 255.255.255.248 >gateway 222.28.246.105 >bridge_ports eth0 >bridge_hello 2 >bridge_maxage 12 >bridge_fd 0 >bridge_stp off >auto eth0I don''t know if it is the problem or not, but you are creating a bridge called eth0, with an interface called eth0 attached to it. Try editing /etc/udev/rules.d/70-persistent-net-rules and changing eth0 to peth0 - and of course editing /etc/network/interfaces to suit. Ie, change "bridge_ports eth0" to "bridge_ports peth0". Also, it''s really a matter of style, but you could help yourself a little by better formatting. Eg, I think you''ll find that this is better for readability (and hence maintainability) than your original : auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 222.28.246.107 netmask 255.255.255.248 gateway 222.28.246.105 bridge_ports eth0 bridge_hello 2 bridge_maxage 12 bridge_fd 0 bridge_stp off Whitespace between sections makes the sections easier to pick out, and some indentation makes the elements within each section easier to differentiate from the section "headings". Just be aware that in some situations, whitespace is significant. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books.
On Wed, 2012-04-11 at 10:07 +0100, Simon Hobson wrote:> Chen Fu wrote: > > >iface eth0 inet static > >address 222.28.246.107 > >netmask 255.255.255.248 > >gateway 222.28.246.105 > >bridge_ports eth0 > >bridge_hello 2 > >bridge_maxage 12 > >bridge_fd 0 > >bridge_stp off > >auto eth0 > > I don''t know if it is the problem or not, but you are creating a > bridge called eth0, with an interface called eth0 attached to it. > Try editing /etc/udev/rules.d/70-persistent-net-rules and changing > eth0 to peth0 - and of course editing /etc/network/interfaces to > suit. Ie, change "bridge_ports eth0" to "bridge_ports peth0".Or call the bridge "xenbr0" which is the other normal way to do things. Ian.
I have my Debian Dom0 setup in a similar fashion with multiple working HVM''s, your configuration is missing or has an invalid bridge. If you haven''t already, install bridge-utils and modify your interfaces file to this: auto lo xenbr0 iface lo inet loopback iface eth0 inet manual iface xenbr0 inet static bridge_ports eth0 address 222.28.246.107 netmask 255.255.255.248 gateway 222.28.246.105 bridge_hello 2 bridge_maxage 12 bridge_fd 0 bridge_stp off To add this network bridge to your HVM''s the "vif" would be: vif=[''bridge=xenbr0,model=e1000''] The bridge "static" IP will apply to your Dom0 instead of the Eth0 static IP. The bridge will connect both HVM''s to the same network as your Dom0. On Wed, Apr 11, 2012 at 5:16 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:> On Wed, 2012-04-11 at 10:07 +0100, Simon Hobson wrote: > > Chen Fu wrote: > > > > >iface eth0 inet static > > >address 222.28.246.107 > > >netmask 255.255.255.248 > > >gateway 222.28.246.105 > > >bridge_ports eth0 > > >bridge_hello 2 > > >bridge_maxage 12 > > >bridge_fd 0 > > >bridge_stp off > > >auto eth0 > > > > I don''t know if it is the problem or not, but you are creating a > > bridge called eth0, with an interface called eth0 attached to it. > > Try editing /etc/udev/rules.d/70-persistent-net-rules and changing > > eth0 to peth0 - and of course editing /etc/network/interfaces to > > suit. Ie, change "bridge_ports eth0" to "bridge_ports peth0". > > Or call the bridge "xenbr0" which is the other normal way to do things. > > Ian. > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users