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] Custom networking problems

To: "Michael Steinhoff" <mstde@xxxxxx>
Subject: Re: [Xen-users] Custom networking problems
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Mon, 9 Apr 2007 18:50:33 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 09 Apr 2007 06:19:25 -0700
Dkim-signature: a=rsa-sha1; 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; b=HOMDmxxOLzB+uJeZ4zMhV/mVWXWRKvfr4NTFMjbNxPghM3z/YzJy2+pc11P6A2xcBYCxK1FdPa9R8Gxw5++bM7YQzQIC0/Z2baYxGvbtRdsUSMvHw47GssWr3IpR/OGpaobUsRoZL78lFQ4t4ZIVBUlawUNvMlZjoSGN0LJeaE8=
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=YXAePkiJTWOGWhnUFifX+C4ypjGMBbM2fePcUBPaMPxR0Gdhk/5kk9KIumqX8x2TOQq4NTnwA1UpSCAs2ZZ4vewRjSm34ql3OSocrbzgsPNmPwAhBiZl8PmBsp60cmhbOFqVampHBq0FQ1QxNOzw0z9gQ/vpbthNW+9CTTGoIzs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1224910@xxxxxx>
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: <1224910@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
First of all, u should check in Domu whether the vif is exported to domU or not.

So do ifconfig in domU. This will show one interface.

# ifconfig -a

Now if it show one interface like eth0, then modify the network config file of ifcfg-eth0 with proper ip,netmask,broadcast address. Mac you can get from the dom0 through command.

#xm list -l
This will show a  lot of info including the mac corresponding to bridge.  ( sometime u done need to mention the mac address in config file,but in some distribution this is required)

Then restart the network in domU.

I assumed u know all the configuration files and scripts used for restart the network and config this.

Just try this one.....

Hope this will be worthful.


On 4/7/07, Michael Steinhoff <mstde@xxxxxx> wrote:
Hallo,

I cannot get my xen networking going ...

My Debian/Etch-Xen (2.6.18-3-xen-686)-machine has two nics. I wolud like to create a scenario with a public site (eth0), a private LAN (eth1) and a DMZ. This should not be too exotic as I found something like this in several postings.

In Dom0 I put the bridges in my /etc/network/interfaces (I've no knowlegde of perl, so fiddling with a custom xen-network-script is no option for me and from what I googled, this should be a valid way to configure the bridges.):

auto eth0
iface eth0 inet static
address 192.168.1.100
network 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.1

#LAN
auto eth1
iface eth1 inet static
address 192.168.2.100
network 192.168.2.0
netmask 255.255.255.0

auto dummy0
iface dummy0 inet static
address 192.168.3.100
netmask 255.255.255.0
gateway 192.168.3.1

# Internal Bridged Network.
auto xenintbr
iface xenintbr inet static
pre-up brctl addbr xenintbr
post-down brctl delbr xenintbr
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
bridge_fd 0
bridge_hello 0
bridge_stp off

auto xendmzbr
iface xendmzbr inet static
pre-up brctl addbr xendmzbr
post-down brctl delbr xendmzbr
address 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
bridge_fd 0
bridge_hello 0
bridge_stp off


A ifconfig shows, that both brigdes are up; I can ping all given addresses (in Dom0).

In the DomU-config file I specify the brigde

vif = ['bridge=xenintbr']

I tried to apply the IP-Address from the config-File or within the running DomU - neither way worked.

What is wrong, what am I missing?

Any help is appreciated.

Thanks!

Michael

_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>