OpenVZ Forum


Home » General » Support » Static Routes
Static Routes [message #35831] Sun, 26 April 2009 14:35 Go to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
I'm just not good at this networking stuff. I have a cabinet of 8 computers and trying to create some local static IPs so that these computers can talk to each other locally. And trying to do it as simple as possible.

On the host I added a file called ifcfg-eth0:192

DEVICE=eth0:192
ONBOOT=yes
BOOTPROTO=static
IPADDR="192.168.3.10"
NETMASK="255.255.255.0"
NETWORK="192.168.3.0"
BROADCAST="192.168.3.255"

On the VEs .conf file I add a line

IP_ADDRESS="192.168.3.253"

Seems to work OK as long as the new private IP addresses are not the first in the list. I'm just wondering what special about the first IP and if there should be some kind of GATEWAY line? Am I doing this right?


Re: Static Routes [message #35845 is a reply to message #35831] Mon, 27 April 2009 12:23 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

[quote]On the VEs .conf file I add a line

IP_ADDRESS="192.168.3.253"[quote]

First, all the IP addresses of VE should be listed in the same IP_ADDRESS statement, i.e. multiple IP_ADDRESS assignments in config file won't work as expected.



Quote:

if there should be some kind of GATEWAY line?


If all the boxes are on the same LAN (i.e. same network segment) no router/gateway is needed.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: hidden iptables in containers
Next Topic: VE Processes
Goto Forum:
  


Current Time: Sat Sep 07 17:23:36 GMT 2024

Total time taken to generate the page: 0.06010 seconds