View Single Post
  #1  
Old 20th March 2012, 15:14
dgardner dgardner is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default OpenVZ Unable to configure IP addresses on 2 different subnets

I have a system running CentOS 6.2 and OpenVZ 3.0.30. The system has 2 NICs on 2 different subnets as follows:

Eth0: 192.168.5.30/24 (GW is on this subnet)
Eth1: 192.168.6.30/24
venet0

I can build a container and give it an IP address on the 192.168.5. subnet and it works fine.

When I try to add another IP on the 192.168.6. subnet it fails with:

Adding IP address(es): 192.168.6.51
arpsend: 192.168.6.51 is detected on another computer : 00:30:48:67:3c:e4
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.6.51 eth0 FAILED

The problem is that it tries to add it on Eth0 in the 192.168.5. subnet instead of Eth1.
The duplicate detection error is bogus as this IP does not exist anywhere else.

I've read through a lot of items but can't quite nail down how to resolve this scenario.

I need this container to talk on both subnets if possible - One is Orange (to the firewall and out to the Internet), and the other is Green (no internet, backbone between SQL, shared drives, etc.)

Any help is appreciated.
Reply With Quote
Sponsored Links