[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] One nic multiple ip's



Current /etc/network/interfaces settings:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 193.34.X.88
netmask 255.255.255.128
gateway 193.34.X.1

auto eth0:0
iface eth0:0 inet static
        address 93.104.X.230
        netmask 255.255.255.128
        gateway 193.34.X.1

auto eth0:1
iface eth0:1 inet static
        address 93.104.X.231
        netmask 255.255.255.128
        gateway 193.34.x.1
..
.
.
ip's are 193.34.X.88 and 93.104.x.230 - .233

Now all ip's working. If i try 93.104 adress on domU. 
Dom0 can acces net, but DomU not.

Off cource i remove other Virtual nic berore testing xen. (if try these
settings boot xen, eth0 gone)


Simon Hobson-2 wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/One-nic-multiple-ip%27s-tp25141074p25146773.html
Sent from the Xen - User mailing list archive at Nabble.com.


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.