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] Multiple NIC interfaces on different subnets

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Multiple NIC interfaces on different subnets
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 2010 22:58:42 +0100
Delivery-date: Mon, 12 Apr 2010 15:01:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <554-4bc38e00-173-1a87d8e0@260614781>
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: <554-4bc38e00-173-1a87d8e0@260614781>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Donny Brooks wrote:
We have multiple /24 networks here and I need to be able to have machines on at least 2 or 3 of the ranges. The server has 4 NIC ports I can use if needed. What would be the best way to get these /24's accessible on this machine?

On mine I have network-script set to my-network-script, and my-network-script contains :

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=ethbak bridge=ethbak
"$dir/network-bridge" "$@" vifnum=1 netdev=ethext bridge=ethext
"$dir/network-bridge" "$@" vifnum=1 netdev=ethint bridge=ethint

I can then attach any guest to any combination of bridges are required.
Dom0 currently has an interface defined on each network, but I believe you can get round that with "if up" to make an interface active but without an IP.

This is on a Debian system.

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

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

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