|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] One nic multiple ip's
nomid wrote:
I have one nic and 5 static ip's. i use debian lenny.
How configure dom0 and domU, gets own ip address.
I think what you are asking is :
Your connection is via ethernet and your upstream provider gives you
5 IPs (I'm guessing a /29 subnet). You want to use different IPs for
Dom0 and each DomU.
It's very simple, in each device you want to have a public IP, you
configure it with the correct subnet mask, one IP from the range
provided, and set the default gateway to the upstream providers
router address.
Eg, if the IPs provided are from 1.2.3.18 to 1.2.3.22 and the
providers router is at 1.2.3.17, then you might configure Dom0 as :
IP: 1.2.3.18, netmask 255.255.255.248, gateway 1.2.3.17
Your first DomU as :
IP: 1.2.3.19, netmask 255.255.255.248, gateway 1.2.3.17
and so on.
You would of course configure your Dom0 networking in bridge mode.
There are other ways to set things up. Some providers will give you a
/29 subnet, but route your traffic over a point-point link with a
different /30 subnet. Sticking with the same subnet as above, you'd
want to run in routed mode, with an outside interface IP to match the
link and an inside interface in your 1.2.3.16/29 subnet.
Yet another option is via proxy arp.
You may be able to pick some info from these articles :
http://shorewall.net/XenMyWay.html
http://shorewall.net/XenMyWay-Routed.html
They are how the author of the Shorewall firewall package configured
his systems (two different ways) with similar requirements.
--
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
|
|
|
|
|