OpenVZ Forum


Home » General » Support » Forcing VE traffic over a specific interface
Forcing VE traffic over a specific interface [message #27019] Thu, 07 February 2008 00:10
seanfulton is currently offline  seanfulton
Messages: 105
Registered: May 2007
Senior Member
Our setup is such that each host on our network has two LAN connections, eth0 and eth1. eth0 is the "front" one carrying web traffic. eth1 is used for mirroring VEs, online migration and other data-heavy operations.

Each VE has two IP addresses, a "HW" address specific to that VE (10.0.1.0), and a floating "Virtual" address (10.0.2.0) that is where the web traffic is directed.

We use quagga for dynamic routing.

What we are trying to do is effectively (and dynamically) say:

traffic to anything in 10.0.1.0, prefer to use eth1(ie., if I am talking just to the VE, use the back-door). traffic to anything in 10.0.2.0, prefer to use eth0 (the front lan with less traffic). We want to do it with route metrics so that if something happens to one of the LANs or an ethernet interface, traffic will fail over to the surviving link.

In my ripd.conf, I have tried:

offset-list hw out 1 eth1
offset-list hw out 2 eth0
offset-list virts out 1 eth0
offset-list virts out 2 eth1

access-list hw permit 10.0.1.0
access-list virts permit 10.0.2.0

It's not working correctly, and I'm not sure why. Any ideas or suggestions from folks who have been down this road before or tried something similar?

sean

 
Read Message
Previous Topic: using devnodes to grant rights to partition
Next Topic: how to Optimization openvz server‏‏ and OpenVZ kernels, performance
Goto Forum:
  


Current Time: Sat Jul 13 19:49:41 GMT 2024

Total time taken to generate the page: 0.02283 seconds