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] network interface and vlans

To: "Stefan Berner" <Stefan.Berner@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] network interface and vlans
From: "Janko Harej" <janko.harej@xxxxxxxxx>
Date: Fri, 14 Sep 2007 13:01:11 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 14 Sep 2007 05:01:41 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=gXWoSCn0e11t6IF3yM8ZZpV34G2q41kmwvv4+y5+X34=; b=NRXqEQ7a2Hn4Q+AOMW0upc5Md8BMQUBZHzpwTnAT2Qm2jkkDwzQhJjPTIEZdUrzayBiZeO7jGVixRQByMoak7kOGEooyCM0OKzSNBwULIGA+xPQRNkLVxpSp5ext763i1y/OkvB8QUxd97Pe40lgMp2/gjnEDpfaYG/VmFQFEoY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cvG14HafdWgHoIwIZupltAiozPBZy3I0mBYKkxY6yZ2SJ/eH8sUd7w6aePWD64KC/eqBT+q5irKhUey7KdYda8w3raN7YpM1uq7yR1mAg3ynCeo3ksJlQQPwqvb1tGsXMWdOX5m9JxxgcyqJIDXB4BqFeJNN3j0TYPcv8Qpntns=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46EA642F.10500@xxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <bb38eb3c0709140312k5cc91002l3210e18b0f089176@xxxxxxxxxxxxxx> <46EA642F.10500@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

thanks - now i've seen my error - wrong configuration

instead of

vif=[ 'mac=00:16:3e:71:31:a2,bridge=xenbr3' ]

I had

vif=[ 'mac=00:16:3e:71:31:a2' , 'bridge=xenbr8' ]

so I got two interfaces one with fixed mac but not working because it was not linked to bridge and one with everythime new mac addreess but linked to right address

Thanks for suggestions

bye



2007/9/14, Stefan Berner <Stefan.Berner@xxxxxxxxxxxxxxx>:
Hi Janko,
Janko Harej wrote:
> Hi,
>
> I've configured dom0 sistem to use vlans. So I have
>
> eth0, vlan2, vlan3
>
> and bridges xenbr0, xenbr2, xenbr3
>
> then I've configured domU to use xenbrX
>
> Problem: everytime I boot domU I get different network interface in domU
>
Do you have defined fixed mac-Addresses? Otherwise your NIC gets
everytime a new hardware address and your udev especially the Suse ones
get confused.
vif = [ 'mac=xx:xx:xx:xx:xx:xx,bridge=xx' ]

> Exampe:
>  - first boot - I have eth0 - nonworking and eth2 - working
>  - second boot of same machine - I get eth0 nonworking and eth4 - I
> can configure it to work
>  - third boot of same machine - I get eth0 nonworking and eth5 - I can
> configure it to work
>
> I use SLES 10 SP1 on dom0 and domU.
>
Ok I see you have Suse.
> I use /etc/xen/scripts/network-bridge to create xenbr0 and my script
> to create other bridges
>
> skript is called: create_bridge vlan_number
>
>  bridge="xenbr${bridge}"
>  vlan=$1
>  vlan="vlan${vlan}"
>  echo creating ${bridge}
>  brctl addbr ${bridge}
>  brctl stp ${bridge} off
>  brctl setfd ${bridge} 0
>  brctl addif ${bridge} ${vlan}
>  ip link set ${bridge} up
>
if you have a fixed mac-address than you can specify an udev rule to
bind the address to an interface:
Add  in /etc/udev/rules.d/30-net_persistent_names.rules:

SUBSYSTEM=="net", ACTION="" SYSFS{address}=="00:60:dd:47:80:dc",
IMPORT="/lib/udev/rename_netiface %k eth0"



> So my question is - how to configure network interfaces in domU to
> automaticly bring up networking?
>
> Thanks and bye
>
> --
> Janko
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
Have fun with your "SLES10.1" system ;-). We had a lot of fun with this
excelent piece of software ;-) .

Bye

Stefan




--
Janko Harej
TŠC Nova Gorica
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>