OpenVZ Forum


Home » General » Support » IP address issue
IP address issue [message #47715] Fri, 31 August 2012 11:21 Go to next message
cc4op5 is currently offline  cc4op5
Messages: 3
Registered: August 2012
Junior Member
Hello,

I just installed OpenVZ on a test server, where I have 4 NICs:

eth0: internal IP address ( static )
eth1: real IP address ( assigned via DHCP )
eth2: real IP address ( assigned via DHCP )
eth3: real IP address ( assigned via DHCP )

I would like to assign all real IP addresses to one Virtual Machine. I tried Venet and Veth, but the IP addresses still resolve to the hosting machine instead of the virtual machine.

I am quite puzzled how to assign the IP addresses. Any help will be greatly appreciated. Thank you in advance.

Re: IP address issue [message #47716 is a reply to message #47715] Fri, 31 August 2012 12:18 Go to previous messageGo to next message
cc4op5 is currently offline  cc4op5
Messages: 3
Registered: August 2012
Junior Member
Problem resolved ! I managed to add the Nics to the Virtual Machine by using -- vzctl set XXX --netdev_add . I am sorry I did not find this option earlier Sad.

Now everything is set correctly.
Re: IP address issue (DHCP issue) [message #47717 is a reply to message #47715] Fri, 31 August 2012 12:23 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

the real IPv4 should be done via DHCP?
then you should configure a veth device perhaps with a bridge and remove your IPv4 Configuration from your hostnode (dhcp)

See wiki.openvz.org for veth setups and more

Bye,
Thorsten
Re: IP address issue [message #47725 is a reply to message #47715] Sat, 01 September 2012 14:53 Go to previous message
cc4op5 is currently offline  cc4op5
Messages: 3
Registered: August 2012
Junior Member
Hi again,

Unfortunately, the solution with netdev_add is not perfect. Once I add a network interface to a Virtual Machine, its speed is capped at 100-120 kb/s. I cannot find why this limitation occurs. If the very same interface is used on the host machine, the transfer speed does not seem to be limited. Is there any known issues with netdev_add ?

In regard to the Veth, none of my attempts to configure it were successful.

The real IP addresses are assigned by DHCP according to the Mac address of the respective interface.
Previous Topic: 2 GW, 2 Subnets, 1 NIC
Next Topic: Safe to upgrade from 32-bit PAE to ENT kernel?
Goto Forum:
  


Current Time: Mon Sep 01 01:26:49 GMT 2025

Total time taken to generate the page: 0.10401 seconds