OpenVZ Forum


Home » General » Support » Dual nics to separate networks
Dual nics to separate networks [message #1205] Fri, 03 February 2006 11:41 Go to next message
erisan500 is currently offline  erisan500
Messages: 1
Registered: February 2006
Junior Member
Hi all,

I'm very new to OpenVZ. I don't have it installed yet but i do have a question.

I would like to know if the following is possible:

Install 2 network cards, 1 connected to a LAN (10.0.10.0), the other one connected to a DMZ (10.0.20.0).

Would i be able to create VPS's that talk only to LAN and at the same time have other VPS's that talk only to the DMZ?

Real world situation, have web and email servers (DMZ) as well as file and database servers (LAN) inside their own VPS.

Thanks in advance,

Eric
icon12.gif  Re: Dual nics to separate networks [message #1206 is a reply to message #1205] Fri, 03 February 2006 11:44 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Sure. No problems with such configuration. Cool

http://static.openvz.org/userbars/openvz-developer.png
Re: Dual nics to separate networks [message #1221 is a reply to message #1206] Fri, 03 February 2006 13:53 Go to previous messageGo to next message
gzgeier is currently offline  gzgeier
Messages: 3
Registered: February 2006
Location: Germany
Junior Member
and how is this configured? I try the same having a quad card and want some of my VPS to have 2 NICs.

rgds Robert aka der RZ-Geier
Re: Dual nics to separate networks [message #1223 is a reply to message #1221] Fri, 03 February 2006 14:01 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Use iptables on HN to prohibit unwanted traffic and use IP from LAN for first VPS and from DMZ for second. If you want provide both LAN and DMZ access to VPS, assign two IPs to it.

http://static.openvz.org/openvz_userbar_en.gif
Re: Dual nics to separate networks [message #1230 is a reply to message #1223] Fri, 03 February 2006 15:13 Go to previous messageGo to next message
gzgeier is currently offline  gzgeier
Messages: 3
Registered: February 2006
Location: Germany
Junior Member
How can I create a new venet1 interface? Or is it not needed for the seperation?

rgds Robert aka der RZ-Geier
Re: Dual nics to separate networks [message #1233 is a reply to message #1230] Fri, 03 February 2006 15:28 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
It is not needed

http://static.openvz.org/openvz_userbar_en.gif
Re: Dual nics to separate networks [message #34963 is a reply to message #1223] Fri, 13 February 2009 18:02 Go to previous message
.hev. is currently offline  .hev.
Messages: 2
Registered: February 2009
Location: Costa Rica
Junior Member
Quote:

...use IP from LAN for first VPS and from DMZ for second...


Hi, I have the same problem.
I have eth0 connected to LAN and eth1 to DMZ.
If I set a LAN IP to VE1 there is no problem because venet0 is "linked" with eth0, but if I set a DMZ IP to VE2 (in venet0) I don't have communication because it is linked to eth0, not eth1.

Can anybody help me?
Thanks

[Updated on: Fri, 13 February 2009 20:33]

Report message to a moderator

Previous Topic: veth, bridges and VLAN
Next Topic: High Load D states..
Goto Forum:
  


Current Time: Mon Nov 04 00:58:54 GMT 2024

Total time taken to generate the page: 0.03586 seconds