OpenVZ and 2 NICs [message #49065] |
Sun, 10 March 2013 13:49 |
dochouse
Messages: 1 Registered: March 2013
|
Junior Member |
|
|
hello everyone,
I am trying to figure out how to make my OpenVZ host node working exclusively with one physical nic.
I have an HN with 2 ethernet cards eth0 and eth1. Originally, only eth0 card was configured with the static IP 10.0.0.2 while eth1 had a DHCP assigned address in the same subnet of eth0 (10.0.0.x). I have found myself in need of installing VirtualBox along with openvz because i need to virtualize a couple of windows machines for certain services. So i thought about starting to use the infamous eth1 card to separate the network traffic generated by VirtualBox. So last night i assigned a static ip address to my eth1: 10.0.0.3. the problem is that if i configure eth1 with a static address my dns server running on an openvz container suddenly stops working. As soon as i set eth1 back to DHCP mode everything works fine. I have read something about ARP flux in the openvz wiki but i am no expert and apparently i fail at understanding how to fix the problem.
I suspect that OpenVz takes control of the eth1 interface too and somehow this may be causing some problems...
Now is there a way to bind OpenVz to one and only ethernet card ( In my case eth0) so that i can do what i want with my eth1 nic? How is it possible that if i just configure eth1 the virtualized dns stops working?
What i have noticed is:
Virtualbox works fine but for some reasons i cannot connect to any of my virtualized machines inside of it.
All the openVZ containers are reachable with an SSH connection even with both eth cards set to work with a static IP.
I can use all of the web panels installed on my various openvz containers.
The only thing that apparently stops working is the DNS.
Any hints?
|
|
|