OpenVZ Forum


Home » General » Discussions » Networking with OpenVz on Debian (My CT do not have internet access)
Re: Networking with OpenVz on Debian [message #36699 is a reply to message #36691] Fri, 10 July 2009 15:18 Go to previous messageGo to previous message
irontowngeek is currently offline  irontowngeek
Messages: 20
Registered: January 2009
Junior Member
In using VETH adapters non bridged you must make the VETH adapter for a container its gateway and each container must be subnetted
For simplicity I use nothing but static configurations
As an example

In VE

DEVICE eth0
TYPE Ethernet
IPADDR 192 168 254 1
PREFIXLEN 30
GATEWAY 192 168 254 2
MTU 1500
ONBOOT yes

You can still leave the

ip route add default dev eth0

as this is mainly a fall back

If you type

ip route list

in the VE you will find the VETH adapter is listed as the default gateway device
Using my example the VETH adapter becomes

DEVICE veth254 0
TYPE Ethernet
IPADDR 192 168 254 2
PREFIXLEN 30
MTU 1500
ONBOOT yes


If routing is proper on the your networks gateway router then you should have no problems reaching the global Net
In other words has the VE containers subnet in its table
Remember that routing on the HN is handled via the kernel at the interface level
I use a 16 prefix on a gateway router if I do not use a routing protocol
My Node servers curently run OSPF so routing is dynamic
I use a 30 prefix length as this is more than enough in using non bridged VETH interfaces
I hope you can read this okay as my keyboard is flaking out on one side
Reading your explaination of your problem I do not think you need any help beyond this explaination
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any Idea why I cant post a question in Support?
Next Topic: VirtualComplete - new openvz panel
Goto Forum:
  


Current Time: Thu Jun 19 08:42:19 GMT 2025

Total time taken to generate the page: 0.02903 seconds