On Thu, Feb 12, 2009 at 01:17:10PM +0100, Oliver Welter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Herbert Poetzl schrieb: > > On Wed, Feb 11, 2009 at 11:58:46AM +0100, Oliver Welter wrote: > > > > > > KwangErn Liew schrieb: > >>>> > >>>> Oliver Welter wrote: > >>>>> I am running a hostbox with two vlan interfaces, everything is doing > >>>>> fine so far. Today I tried to add another interface to one of my guests. > >>>>> > >>>>> The current config has 3 interfaces all in the same vlan - works. > >>>>> I added one new interface from the other vlan - when I now startup the > >>>>> guest I get "RTNETLINK answers: Numerical result out of range". > >>>>> > >>>>> The IP Adress is not set on the host and so not avail inside the geust - > >>>>> adding the IP to the host by hand and launching the guest still results > >>>>> in the error message shown, but the new interface is operational > >>>>> afterwards. > >>>> Knowing how you added the interface would be helpful to pinpoint what > >>>> went wrong. > >>>> > > Simply using the "ip" command: ip addr add <IP>/<Maskbits> dev vlan3 > > > >> guest config (specifically the interfaces section) > >> and a description of the network setup on the host > > The Host has two vlan's over the physical interface eth0: > vlan3 82.135.58.0/25 > vlan4 212.18.24.192/26 > > one IP of each vlan is assigned to the host, several guests use IPs from > both vlans. > > The guest is setup with following interface configuration, interfaces > are numbered 3x on vlan3 and 4x on vlan4 > > 30/* > dev: vlan3 ~~~~~ 5 chars > ip: 82.135.58.36 > name: www1_customer1 ~~~~~~~~~~~~~~ 14 chars > prefix: 25 maximum length for network interface (and alias) names is 15 chars (e.g. eth0:123456789a), so you end up using the very same name more more than one of your guests :) I'd suggest to drop the alias names completely, unless you have a good reason for them, in which case, you should make them unique within the 15 chars. HTH, Herbert > 40/* > dev: vlan4 > ip: 212.18.24.201 > name: www1_customer2 > prefix: 26 > > 41/* > dev: vlan4 > ip: 212.18.24.202 > name: www1_customer3 > prefix: 26 > > 42/* > dev: vlan4 > ip: 212.18.24.205 > name: www1_customer4 > prefix: 26 > > HTH > > Oliver > - -- > Protect your environment - close windows and adopt a penguin! > PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkmUE0YACgkQyrew3TmFFyGSWwCePOfiGPWBq0V6j3rEWSL3aoa3 > rMkAn0pMRQF8syfvueCjvkvBmbz0Yc+l > =/dfO > -----END PGP SIGNATURE-----