*SOLVED* Multiple IP - Speed? [message #5977] |
Wed, 06 September 2006 09:05 |
chinaman
Messages: 15 Registered: August 2006
|
Junior Member |
|
|
Hello,
I am a newbie in server virtualisation. Thanks for the fine ware, so far I followed the howtos and it's runnin fine.
But I got some problems and questions about IPs and LAN Speed.
I will try to explain my configuration and my problems.
I am running Openvz on a Debian HWNode with Debian VPS.
I need to use different IPs out of different Networks all with it's own gateway.
So far I've got it running using the instructions about source based routing with different tables. But I had to use 1 Ip out of each Net inside the HWNode. Then I could use another IP inside the VPS too.
Question:
Is it possible to use one IP out of Network one inside the HWNode and an IP out of another network inside the VPS?
It seems there is a speedproblem with Network inside the VPS. When I ping to a certain host I get a response time of 25ms out of the HWNode. If I ping out of the VPS the response time is around 350ms !
Is this usual? are there any settings to switch? How can I debug to come closer to the reason?
Thanks for your help, I hope my explanations are clear enough.
Thomas
[Updated on: Fri, 08 September 2006 06:40] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Multiple IP - Speed? [message #5988 is a reply to message #5987] |
Wed, 06 September 2006 11:40 |
chinaman
Messages: 15 Registered: August 2006
|
Junior Member |
|
|
Andrey Mirkin wrote on Wed, 06 September 2006 07:19 | In this configuration you will use only 2 IP addresses.
|
Pls. let me doublechek if I am clear with your suggestion:
Let's say I am using 3 Networks on one physical NIC. I would like to have follwing configuration:
HW: NET1
VPS1: NET1, NET2
VPS2: NET2, NET3
...
I don't mind if every VPS use it's own IPs, but but i don't wanna waste the IPs for HW, bcs. I just need it for configuration y ssh. All services are running inside VPS.
Is this possible by using bridged eth ?
Sorry for stupid question, but I would like to make sure before I start working this out.
Thanks.
[Updated on: Wed, 06 September 2006 11:42] Report message to a moderator
|
|
|
|
|
|
Re: Multiple IP - Speed? [message #6076 is a reply to message #6063] |
Thu, 07 September 2006 17:02 |
chinaman
Messages: 15 Registered: August 2006
|
Junior Member |
|
|
Andrey Mirkin wrote on Thu, 07 September 2006 11:04 |
chinaman wrote on Thu, 07 September 2006 09:37 | 1. I add veth and eth0 device to bridge in HW node. I had to set a route to IP of VPS to veth device, otherwise I couldn't reach the VPS. Is this correct? I thought there is no routing necessary bcs. of the bridge.
|
Just add route to this VPS via bridge interface (veth in bridge, so everything should work fine).
|
Yes, you are right, now it's working fine. Propably i did something wrong before.
Andrey Mirkin wrote on Thu, 07 September 2006 11:04 |
chinaman wrote on Thu, 07 September 2006 09:37 | 2. How can I automatically assign IP to eth0 device in VPS? If i use /etc/network/interfaces the file is empty after restarting VPS.
| You can use DHCP daemon to assign IP addresses for VPSes.
|
I tried a bit and I used the config start filed <VEID>.start to handle this problem. The file has to be located in /etc/vz/conf (just latest version of vzctl)
In the file i used:
ifconfig eth0 0
ip addr add 192.168.0.1/32 dev eth0
Andrey Mirkin wrote on Thu, 07 September 2006 11:04 |
chinaman wrote on Thu, 07 September 2006 09:37 | 3. After restarting the VPS the veth dev in HW was down. I had to do the whole procedure (adding to bridge ...) manually again. Is it possible to do this automatically?
| Unfortunately it is not yet automated. But you can add necessary commands to <VEID>.start script, so veth device will be configured on VPS start.
|
I tried, but the configuration of the veth device in HW isn't working with <VEID>.start. It seems this file is running inside the starting VPS. So i used it to set the IP. (see above)
It would be nice if there would be a script running inside the HW like <VEID>.start is running inside the VPS.
Thanks for all the help!
I would say the problem is solved.
[Updated on: Thu, 07 September 2006 17:12] Report message to a moderator
|
|
|