Hi, I''ve installed xen-2.0.7, and I''m trying to get networking in my domU set up correctly. My server has one NIC, but five IP addresses. My dom0 uses the first IP address. I''d like my domU to use the second IP address. Originally my /etc/network/interfaces on the dom0 defined interfaces for the first two IP addresses as: auto eth0 iface eth0 inet static address 69.93.218.2 netmask 255.255.255.248 gateway 69.93.218.1 auto eth0:0 iface eth0:0 inet static address 69.93.218.3 netmask 255.255.255.248 I have removed "eth0:0" from dom0, but I would like that 69.93.218.3 IP address to be assigned to the domU. My domU /etc/network/interfaces now looks like: auto eth0 iface eth0 inet static address 69.93.218.3 netmask 255.255.255.248 gateway 69.93.218.1 As you can see, I just copied what used to be "eth0:0" on dom0, and put it in the domU (adding the gateway parameter from dom0''s eth0.) However, this doesn''t appear to be working. The domU boots up, and the interface is there with correct-looking parameters - but I can''t ping anything. If anyone can point out what I''m doing wrong, it''d be most appreciated. Thanks! Regards, Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nivedita Singhvi
2005-Dec-05 19:52 UTC
Re: [Xen-users] domU network configuration question
Bill Kelly wrote:> Hi, > > I''ve installed xen-2.0.7, and I''m trying to get networking in my > domU set up correctly.This has been fixed in later releases. If you need to make it work in 2.0.7, try the following: In your 2.0.7 /etc/xen/scripts/network-bridge script, insert an extra egrep cmd after: "| egrep ''^ *inet ''" as in: "| egrep ''^ *inet '' | egrep "${src}$" thanks, Nivedita> My server has one NIC, but five IP addresses. My dom0 uses the > first IP address. I''d like my domU to use the second IP address. > > Originally my /etc/network/interfaces on the dom0 defined interfaces > for the first two IP addresses as: > > auto eth0 > iface eth0 inet static > address 69.93.218.2 > netmask 255.255.255.248 > gateway 69.93.218.1 > > auto eth0:0 > iface eth0:0 inet static > address 69.93.218.3 > netmask 255.255.255.248 > > I have removed "eth0:0" from dom0, but I would like that 69.93.218.3 > IP address to be assigned to the domU. My domU /etc/network/interfaces > now looks like: > > auto eth0 > iface eth0 inet static > address 69.93.218.3 > netmask 255.255.255.248 > gateway 69.93.218.1 > > As you can see, I just copied what used to be "eth0:0" on dom0, and > put it in the domU (adding the gateway parameter from dom0''s eth0.) > > However, this doesn''t appear to be working. The domU boots up, and the > interface is there with correct-looking parameters - but I can''t > ping anything. > > If anyone can point out what I''m doing wrong, it''d be most > appreciated. > > Thanks! > > Regards, > > Bill > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bill Kelly
2005-Dec-07 08:40 UTC
[Xen-users] Has anyone successfully configured Xen to work with...
Hi, Has anyone successfully configured Xen to work with a server having: 1 NIC. Multiple IPs. (e.g. 69.93.218.2, 69.93.218.3, 69.93.218.4, ...) dom0 using one IP. (e.g. 69.93.218.2) domU using another IP. (e.g. 69.93.218.3) ? If anyone has successfully configured Xen to work this way, I''d be grateful to learn the details of your configuration and what version of Xen you''re using. I haven''t been able to get this working yet. (My domU ends up with no network connectivity.) Thanks for your help, Regards, Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Smith
2005-Dec-07 11:06 UTC
Re: [Xen-users] Has anyone successfully configured Xen to work with...
On Wed, Dec 07, 2005 at 12:40:17AM -0800, Bill Kelly wrote:> Hi, > > Has anyone successfully configured Xen to work with a server having: > > 1 NIC. > Multiple IPs. (e.g. 69.93.218.2, 69.93.218.3, 69.93.218.4, ...) > dom0 using one IP. (e.g. 69.93.218.2) > domU using another IP. (e.g. 69.93.218.3)This is a fairly normal config when bridging, since the eth0 and all vifs are going to be on the same layer 2 network they can all take addresses from the same network. Paste output of: ifconfig -a brctl show ip ro For example: eth0 Link encap:Ethernet HWaddr 00:E0:81:64:1D:07 inet addr:212.13.198.69 Bcast:212.13.198.255 Mask:255.255.255.224 xen-br0 Link encap:Ethernet HWaddr 00:E0:81:64:1D:07 inet addr:212.13.198.69 Bcast:212.13.198.255 Mask:255.255.255.255 $ brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.00e081641d07 no eth0 vif-struggler.0 $ ip ro 212.13.198.64/27 dev xen-br0 proto kernel scope link src 212.13.198.69 default via 212.13.198.65 dev xen-br0 and in the domU connected to vif-struggler.0: eth0 Link encap:Ethernet HWaddr AA:00:00:4B:A0:C1 inet addr:212.13.198.70 Bcast:212.13.198.255 Mask:255.255.255.224 212.13.198.69/27 and 212.13.198.70/27 are obviously both on the same layer 2 network (212.13.198.64 -> 212.13.198.95), nothing special needed to be done to make the bridging work. Make sure you aren''t adding the IP of your domU to any interface in dom0. Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bill Kelly
2005-Dec-07 17:14 UTC
Re: [Xen-users] Has anyone successfully configured Xen to work with...
Hi Andy, From: "Andy Smith" <andy@strugglers.net>> > > > Has anyone successfully configured Xen to work with a server having: > > > > 1 NIC. > > Multiple IPs. (e.g. 69.93.218.2, 69.93.218.3, 69.93.218.4, ...) > > dom0 using one IP. (e.g. 69.93.218.2) > > domU using another IP. (e.g. 69.93.218.3) > > This is a fairly normal config when bridging, since the eth0 and all > vifs are going to be on the same layer 2 network they can all take > addresses from the same network.[...] Thanks for the detailed response! I''ve been informed this bridging functionality may have been broken in certain versions of Xen, such as 2.0.7 (stable), which is what I was using. Might I inquire as to which version of Xen you''re running? Thanks, Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nivedita Singhvi
2005-Dec-07 17:27 UTC
Re: [Xen-users] Has anyone successfully configured Xen to work with...
Bill Kelly wrote:> Hi Andy, > > From: "Andy Smith" <andy@strugglers.net> > >> > >> > Has anyone successfully configured Xen to work with a server having: >> > > 1 NIC. >> > Multiple IPs. (e.g. 69.93.218.2, 69.93.218.3, 69.93.218.4, ...) >> > dom0 using one IP. (e.g. 69.93.218.2) >> > domU using another IP. (e.g. 69.93.218.3) >> >> This is a fairly normal config when bridging, since the eth0 and all >> vifs are going to be on the same layer 2 network they can all take >> addresses from the same network. > > [...] > > Thanks for the detailed response! I''ve been informed this bridging > functionality may have been broken in certain versions of Xen, > such as 2.0.7 (stable), which is what I was using. > > Might I inquire as to which version of Xen you''re running?Bill, your exact scenario is still not understood. Are you using one physical NIC with multiple IPs (aliases)? If your initial configuration was an interface with multiple IPs, then not all IPs got transferred from the phyical interface to the virtual one we create. Those, however, have nothing to do with the interfaces in domU. Note that domU interfaces are created independently and are virtual. thanks, Nivedita _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bill Kelly
2005-Dec-07 20:17 UTC
Re: [Xen-users] Has anyone successfully configured Xen to work with...
Hi Nivedita,> Bill, your exact scenario is still not understood. > Are you using one physical NIC with multiple IPs (aliases)?Yessir. One physical NIC, with five IPs. (69.93.218.2, 69.93.218.3, 69.93.218.4, 69.93.218.5, 69.93.218.6)> If your initial configuration was an interface with > multiple IPs, then not all IPs got transferred from > the phyical interface to the virtual one we create. > Those, however, have nothing to do with the interfaces > in domU. > > Note that domU interfaces are created independently > and are virtual.Hmm. Well for whatever reason - although my configuration looked pretty much like what Andy had posted - my domU was unable to ping anything on the network. I''ve presumed the problem is probably some mistake I''ve made in configuration, so that''s why I was asking for configuration details from folks who had this type of setup running successfully. So you''re saying it shouldn''t matter to my domU that "not all the IPs got transferred from the physical interface to the virtual one." ? Regards, Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dirk H. Schulz
2005-Dec-08 07:01 UTC
Re: [Xen-users] Has anyone successfully configured Xen to work with...
Hi Bill, first: bridging does work in 2.0.7. I have it running on several machines. Second: If you want to use several IPs for your domUs (what is exactly what you normally do :-) ), you just have to assign ONE of the IPs to your physical nic (no multihoming has to be configured there). The other IPs are assigned to the domUs (in the domUs /etc/network/interfaces e.g.). When you start the domUs, xen scripts connect them to a bridge that has been set up before. That all is part of the default configuration. You just have to assign one IP to the physical interface and one to each domU. Dirk Bill Kelly schrieb:> Hi Nivedita, > >> Bill, your exact scenario is still not understood. >> Are you using one physical NIC with multiple IPs (aliases)? > > > Yessir. One physical NIC, with five IPs. > (69.93.218.2, 69.93.218.3, 69.93.218.4, 69.93.218.5, 69.93.218.6) > >> If your initial configuration was an interface with >> multiple IPs, then not all IPs got transferred from >> the phyical interface to the virtual one we create. >> Those, however, have nothing to do with the interfaces >> in domU. >> >> Note that domU interfaces are created independently >> and are virtual. > > > Hmm. Well for whatever reason - although my configuration > looked pretty much like what Andy had posted - my domU was > unable to ping anything on the network. > > I''ve presumed the problem is probably some mistake I''ve made > in configuration, so that''s why I was asking for configuration > details from folks who had this type of setup running > successfully. > > So you''re saying it shouldn''t matter to my domU that "not all > the IPs got transferred from the physical interface to the > virtual one." ? > > > Regards, > > Bill > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users