OpenVZ Forum


Home » General » Support » dual NIC (Dual network)
Re: dual NIC [message #38973 is a reply to message #38891] Thu, 25 February 2010 16:06 Go to previous messageGo to previous message
seanfulton is currently offline  seanfulton
Messages: 105
Registered: May 2007
Senior Member
No other responses so I will try to jump in. We have a couple of hundred VEs on machines connected to two distinct networks so here is what I know. Maybe it will help:

We have two separate LANs and the VEs all are on a separate (third) subnet. We set up quagga/rip to announce the routes and we use rip configuration rules to weight one network over the other.

When the VEs are on the same network as one of the NICs, I believe OpenVZ uses arp to announce them. In a case like ours with separate networks, we treat the HN like a router. It is set to announce kernel routes from venet0, and only accept a default route from the network. This allows the HN to control what it announces.

On the other host nodes, we tell them to prefer routes to the VEs over the front-side connection using rip metrics.

So when a VE comes up, the HN will announce a route to it over both networks. Each other host on the network gives the VE IP space a lower metric over the primary LAN than over the secondary. If the primary becomes unavailable, traffic will traverse the backup.

It's a bit simplified of an explanation but I hope it helps.

In your case, you may need routing+NAT, I am not sure.

sean
 
Read Message
Read Message
Read Message
Previous Topic: kernel: unregister_netdevice: waiting for lo to become free.
Next Topic: CLUSTERIP / ipt_CLUSTERIP : invalid argument
Goto Forum:
  


Current Time: Tue Jul 16 17:39:11 GMT 2024

Total time taken to generate the page: 0.02982 seconds