[Xen-users] network interface and vlans

Janko Harej
2007-09-14T10:12:26Z

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

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.

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

So my question is - how to configure network interfaces in domU to
automaticly bring up networking?

Thanks and bye

--
Janko