I am new to OpenVZ so please be graceful...
On two hostsystems (ubuntu 8.04, Debian Lenny) I installed each a VE ununtu-8.04-minimal. In both envirements a gateway 192.0.2.1 is added and the network does not work. Changing the /etc/network/interfaces to correct values and after a network restart everything works.
After a reboot of the VE the /etc/network/interfaces is crappy again:
# This configuration file is auto-generated.
# WARNING: Do not edit this file, otherwise your changes will be lost.
# Please edit template /etc/network/interfaces.template instead.
auto lo
iface lo inet loopback
auto venet0
iface venet0 inet manual
up ifconfig venet0 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.3.105
netmask 255.255.255.255
broadcast 0.0.0.0
This ist the routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
The same problem using debian-4.0-minimal.
How do I get rid of this problem?
Thx...