OpenVZ Forum


Home » General » Support » Dual veth interfaces
Re: Dual veth interfaces [message #4613 is a reply to message #4604] Tue, 18 July 2006 08:57 Go to previous messageGo to previous message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
As I understand you have 2 network interfaces (eth0 and eth1) on host node, which are connected to different network segments (outside network and virtual subnetwork 192.168.156.0). And you need to configure 2 veth devices to be able to reach these network segments.

Besides steps from http://wiki.openvz.org/Virtual_Ethernet_device you need to add routes inside VPS:

[vps]# ip ro add 192.168.156.0/24 dev eth1
[vps]# ip ro add default dev eth0


Also you will need to add NAT rule to iptables on host node:

[host-node]# iptables -t nat -A POSTROUTING -s 192.168.156.0/24 --out-interface eth0 -j SNAT --to-source 200.25.123.2


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Networking Issue
Next Topic: VE "route" command shows 191.255.255.1
Goto Forum:
  


Current Time: Tue Jun 04 11:53:40 GMT 2024

Total time taken to generate the page: 0.00399 seconds