OpenVZ Forum


Home » General » Support » IP route issue
IP route issue [message #38947] Wed, 24 February 2010 01:30 Go to next message
MJennings is currently offline  MJennings
Messages: 3
Registered: February 2010
Junior Member
Hi, I don't know where I should be posting this, but I am using proxmox (using openvz) for centos (proxmox template) and I can't get it to set the route in my openvz VM. In /etc/sysconfig/network I have
networking="yes"
gateway="92.25.11.254"
hostname="cpanel"

I have rebooted the VM and it still doesn't work, route -n shows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
Re: IP route issue [message #38950 is a reply to message #38947] Wed, 24 February 2010 02:35 Go to previous messageGo to next message
nuno is currently offline  nuno
Messages: 43
Registered: January 2010
Member
You can configure the network as usual if you use a bridge. The default method of networking with the containers is not bridging (it's venet). There's a howto for setting up the bridge and openvz configuration.

If you're using venet (the default) you just configure the IP in the conf file and the template scripts make the necessary configuration in the container. That file /etc/sysconfig/network usually has something like this:
NETWORKING="yes"
GATEWAY="192.0.2.1"

Regards,

Re: IP route issue [message #38951 is a reply to message #38947] Wed, 24 February 2010 02:44 Go to previous messageGo to next message
MJennings is currently offline  MJennings
Messages: 3
Registered: February 2010
Junior Member
Yes, I did edit that file and I have said my file is set to the correct gateway but centos/openvz is not actually using that value and it's setting gateway to 0.0.0.0 and when I manually try to set a route with "route add default gw 92.25.11.254" I get SIOCADDRT: No such process
Re: IP route issue [message #38952 is a reply to message #38951] Wed, 24 February 2010 03:03 Go to previous messageGo to next message
nuno is currently offline  nuno
Messages: 43
Registered: January 2010
Member
I think you missed my point. Are you using venet or bridged networking?
Re: IP route issue [message #38953 is a reply to message #38952] Wed, 24 February 2010 04:39 Go to previous message
MJennings is currently offline  MJennings
Messages: 3
Registered: February 2010
Junior Member
Bridged of course
Previous Topic: KVM support on 2.6.18-164.2.1.el5.028stab066.7 (CentOS5.4)
Next Topic: VDS with Debian 5 performs much worse than with Debian 3.
Goto Forum:
  


Current Time: Mon Nov 18 19:10:36 GMT 2024

Total time taken to generate the page: 0.02840 seconds