OpenVZ Forum


Home » General » Support » ***SOLVED*** Networking Problem - 2 different subnets / 1 Interface?
icon9.gif  ***SOLVED*** Networking Problem - 2 different subnets / 1 Interface? [message #35041] Mon, 23 February 2009 22:29 Go to previous message
oeginc is currently offline  oeginc
Messages: 5
Registered: February 2009
Junior Member
I can't be the only person that is having this problem, I have seen some others in a similar situation, but most of them had 2 interfaces they could route to..

Here's my situation:

I have 2 IP blocks of 32 IP addresses each, let's call them (for simplicity)

Block #1 - 10.10.10.1/27
Block #2 - 10.10.20.1/27

I have the host machine setup as 10.10.10.2 (10.10.10.1 is the router for Block #1) and as long as I create a machine that uses an IP address from Block #1 everything works fine...

The problem comes in that I have need to be able to create machines from 10.10.20.x IP block on the 10.10.10.2 host.

Under XEN this worked just fine, I have no clue how to get this to work using venet's...

My setup:
* Running ProxMox v1.1
* Debian 4.0
* Kernel = Linux server01 2.6.24-2-pve #1 SMP PREEMPT Wed Jan 14 11:32:49 CET 2009 x86_64 GNU/Linux
* /proc/vz/version = ovz005
* /proc/vz/veth = 1.0

/etc/network/interfaces
=======================
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 10.10.10.2
        netmask 255.255.255.224
        gateway 10.10.10.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


I imagine I will need to setup an IP on the host machine for Block #2 and then route to it somehow, I have no idea..

I'm in a pinch to get this setup, my nameservers are down right now because of this. Sad

Any help you could give is greatly appreciated...



********** SOLUTION **********

Actually, the answer is very simple.. I'm not sure how I missed it, but eventually I stumbled upon this...

edit /etc/vz/vz.conf

and change the line that says

NEIGHBOUR_DEVS=detect

to

NEIGHBOUR_DEVS=all

and reboot! Everything worked fine after that..

[Updated on: Tue, 24 February 2009 16:56]

Report message to a moderator

 
Read Message icon9.gif
Read Message
Read Message
Previous Topic: VENET vs Bridging?
Next Topic: Multiple NICs on Host
Goto Forum:
  


Current Time: Fri Aug 16 08:21:15 GMT 2024

Total time taken to generate the page: 0.02902 seconds