OpenVZ Forum


Home » General » Support » /etc/network/interfaces file
/etc/network/interfaces file [message #36069] Tue, 19 May 2009 06:49 Go to previous message
Balbuzard is currently offline  Balbuzard
Messages: 26
Registered: March 2009
Location: Australia
Junior Member
Hey,

I have had a look at the /etc/network/interfaces file in a VPS, and I am surprised by the values of the netmask and the broadcast
255.255.255.255 for the netmask and 0.0.0.0 for the gateway.
I have tried to modify these values for more realistic ones
255.255.255.0 for the netmask and 192.168.10.255 for the broadcast, but then, I can not change the IP values with the vzctl command. And it becomes impossible to do live migration too.
Here is the content of the /etc/network/interfaces file
# Auto generated interfaces

auto lo

iface lo inet loopback



auto venet0

iface venet0 inet static

	address 127.0.0.1

	netmask 255.255.255.255

	broadcast 0.0.0.0

	up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0

	up route add default gw 192.0.2.1

auto venet0:0

iface venet0:0 inet static

	address 192.168.10.126

	netmask 255.255.255.255

	broadcast 0.0.0.0

	gateway 192.168.10.1


I don't understand why there are two blocs (one for venet0 and the second one for venet0:0)
And why are these values for netmask and broadcast set like this?

To finish with, I have added the IP-address of the gateway in this file, but after checking, it is not needed! It should however be set somewhere, the VPS can not establish an internet connection without the gateway address?

Thank you for your answers and help, and sorry for my bad English!

[Updated on: Tue, 19 May 2009 08:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: bridging work one-way only
Next Topic: Time falls behind in Hardware(host) node
Goto Forum:
  


Current Time: Tue Aug 13 15:25:21 GMT 2024

Total time taken to generate the page: 0.02690 seconds