WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] bridge interface with (initially) no ports

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] bridge interface with (initially) no ports
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Sat, 27 Jun 2009 12:49:51 +0700
Delivery-date: Fri, 26 Jun 2009 22:50:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DD9BB@trantor>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D016DD9BB@trantor>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Jun 27, 2009 at 9:50 AM, James
Harper<james.harper@xxxxxxxxxxxxxxxx> wrote:
> I use some completely virtual networks inside my DomU's. In Dom0 I want
> to have the following in /etc/network/interfaces:
>
> auto br-wan
> iface br-wan inet static
>  address x.y.z.254
>  netmask 255.255.255.0
>  bridge_maxwait 0
>  bridge_ports none
> up ip addr add 2002:xy:xfe:3::1/64 dev $IFACE
>
> but of course when the br-wan interface comes up, it has no mac address
> because it has no ports yet to inherit a mac address from.

Here's what I get on my Ubuntu
# brctl addbr br-test1
# ip link show br-test1
12: br-test1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether ea:32:77:5d:2d:f7 brd ff:ff:ff:ff:ff:ff

it has a mac address by default.

Even if it doesn't have a mac address, you should be able to assign one
# ip link set br-test1 addr 00:16:3e:00:00:01
# ip link show br-test1
12: br-test1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 00:16:3e:00:00:01 brd ff:ff:ff:ff:ff:ff

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users