OpenVZ Forum


Home » General » Support » Multiple interfaces eth0, eth1 on different subnets
Re: Multiple interfaces eth0, eth1 on different subnets [message #10300 is a reply to message #9978] Wed, 14 February 2007 14:46 Go to previous messageGo to previous message
Reiner030 is currently offline  Reiner030
Messages: 3
Registered: December 2006
Location: Berlin
Junior Member
Hi,

it's my problem, too...

It seems, that the person on [message #7394] "Dual NIC environment" had the same problem, but the other reader didn't understand his explainations and thougt he played a joke with them...

As i found in the searches, the main problem seems the problem with the wrong interface / and even now the wrong interface used by arpsend ... even it's "only" a warning...

My config:

VHost:
eth0: a.b.c.d/255.255.255.224
eth1: 10.0.0.1/255.255.255.0

VE (with standard openvz rules):
veneth0: 127.0.0.1
veneth0:0: a.b.c.e
veneth0:1: 10.0.0.222


1) from VHost AND other server outside:
ping a.b.c.e => works
ping 10.0.0.222 => works

2) from VE to VHost:
ping a.b.c.d => works
ping 10.0.0.1 => works

3) from VE to other server outside:
ping a.b.c.g => works
ping www.heise.de, www.t-online.de and so on => works
ping 10.0.0.3 => did'nt work
but
ping -I 10.0.0.222 10.0.0.3 => work

I've used tcdump -I veneth0 on VHost to verify the packet transfer Wink

=> so the source routing for 10.0.0.222 is'nt right...

I thought "no problem", I found here the tipp to change debian-add_ip.sh ... so i change the script to add routes behind

veneth0:0
up route add -net a.b.c.a netmask 255.255.255.224 dev veneth0:0
and veneth0:1
up route add -net 10.0.0.0 netmask 255.255.255.0 dev veneth0:1

now all pings and my webinterface connection to the mysql server on 10.0.0.3 works correctly ...
BUT
the dns server could'nt be queried Sad((

I tried to change the default route from the VE FAKEGATEWAY to my Gateway:
up route del default gw 191.255.255.1
up route add default dev venet0:0
but it didnt help either.

If I remove theses routes, dns works / use of 10.0.0.222 is wrong again...


==>
Is it possible to change the arpsend command and when yes, where? I grepped the /etc/vz/ files for arpsend, but didn't find it...
Or is there an easier way to get the right routing?

Thanks.


Reiner
 
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* is it possible to control what /proc/cpuinfo says?
Next Topic: *SOLVED* 32bit vs. x86-64bit ?
Goto Forum:
  


Current Time: Tue Aug 12 08:44:19 GMT 2025

Total time taken to generate the page: 0.68849 seconds