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] How to get eth0 & eth1 fox XEN domU's?

Hi Rudi,

> Hi Thomas,
> 
> You kinda lost me a bit on this one. I use CentOS, so the config files
> look a bit different. 

yap - on rh/centos these files resist
in /etc/sysconfig/network-scripts/ifcfg-xyz


> Let's stick to the more generic interface names.
> So, if I have eth0 & eth1, how do I tell XEN to use those?

But I think the easiest way is to use a custom-network-script. e.g.

# vim /etc/xen/script/network-2bridges
------------------
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=eth0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1
--------------------

chmod +x /etc/xen/script/network-2bridges

edit /etc/xen/xend-config.sxp
---------
(network-script network-2bridges)
--------
and restart xen.

then you can use these bridges in xen-domu-config, e.g.
.....
vif         = [ 'mac=00:16:3E:A0:C5:13,bridge=eth0', 'mac
=00:16:3E:2F:1F:A6,bridge=eth1' ]


hth,

Thomas



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

<Prev in Thread] Current Thread [Next in Thread>