[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Bridge networking in Debian


  • To: xen-users@xxxxxxxxxxxxx
  • From: Alexandre Kouznetsov <alk@xxxxxxxxxx>
  • Date: Mon, 20 May 2013 11:58:54 -0500
  • Delivery-date: Mon, 20 May 2013 16:59:59 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello.

El 19/05/13 20:19, James Triplett escribió:
Following instructions in /usr/share/doc/xen-utils-common/README.debian,
I created a /etc/network/interfaces file like this:

      auto br0
      iface br0 inet static
      address 192.168.0.26
      network 192.168.0.0
      netmask 255.255.255.0
      broadcast 192.168.0.255
      gateway 192.168.0.1
      bridge_ports all
This looks pretty nice, should work as is, maybe with few corrections:

1. The specification of "network" and "broadcast" may be safely omitted, ifupdown scripts do excellent job deducing this parameters. Omitting them leaves you less room to make a mistake.

2. Consider adding "bridge_stp off" parameter.
http://wiki.xen.org/wiki/Xen_Bridge_Loop#Why_STP_is_turned_off.3F

3. Specify "eth0" in bridge_ports, it would make things more explicit.

4. IMPORTANT Make sure eth0 is not configured elsewhere. Comment out any "auto eth0" or "allow-hotplug eth0" (contrary to what Adam Goryachev suggested) in /etc/network/interfaces. Make sure any network automated configuration tool is turned off, such as Debian's NetworkManager.


Does anyone know the correct configuration in /etc/network/interfaces for
a dead-simple bridge to support Xen domU's?
A simple and clean starting /etc/network/interfaces would look like this:
##allow-hotpug eth0
#iface eth0 inet static
#  address 192.168.0.26
#  netmask 255.255.255.0
#  gateway 192.168.0.1
auto br0
iface br0 inet static
  address 192.168.0.26
  netmask 255.255.255.0
  gateway 192.168.0.1
  bridge_ports eth0
  bridge_stp off
#<and nothing else>

Greetings.

--
Alexandre Kouznetsov


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.