OpenVZ Forum


Home » General » Support » Routing in VPS?
Re: Routing in VPS? [message #940 is a reply to message #936] Thu, 19 January 2006 19:57 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

To tell the truth, I personally would recommend to use IP rules.
It is much better/faster/easier than using NAT.

I personally do the following for adding second IP address on my host.

#!/bin/bash

IP=217.67.117.132
GW=217.67.117.129
MASK=27

ip addr add $IP/$MASK dev eth0
ip rule add from $IP table 6
ip route add default dev eth0 via $GW table 6


Hope, it works for you


http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: sharing file between ve's - openvz versus virtuozzo
Next Topic: Bug in vzsplit ?
Goto Forum:
  


Current Time: Wed Aug 20 19:41:14 GMT 2025

Total time taken to generate the page: 0.07867 seconds