OpenVZ Forum


Home » General » Discussions » Networking with OpenVz on Debian (My CT do not have internet access)
Re: Networking with OpenVz on Debian [message #36722 is a reply to message #36691] Mon, 13 July 2009 15:27 Go to previous message
irontowngeek is currently offline  irontowngeek
Messages: 20
Registered: January 2009
Junior Member
I'm going to repost this reply,as I'm not sure that it took.

First,let's go back to square one.
I'm assuming you use a REDHAT OS on the Node,and you want to network a DEBIAN VE.

* Issue number 1.

No IP address for VETH interface.

veth70.0 Link encap:Ethernet HWaddr 00:18:51:39:c7:e7
inet6 addr: fe80::218:51ff:fe39:c7e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1750 (1.7 KiB) TX bytes:1312 (1.2 KiB)

If you are not bridging a VETH adapter interface,you must assign an IP address to the VETH adapter.

* Issue number 2

VE containers ID numbers must start at 100. Whether this makes a difference,I have not tested.

Assuming what I have wrote;

On the Node server for REDHAT based distributions;

DEVICE=veth100.0
TYPE=Ethernet
IPADDR=192.168.100.2
NETMASK=255.255.255.0
ONBOOT=yes

On the VE container,for REDHAT based distributions;

DEVICE=eth0
TYPE=Ethernet
IPADDR=192.168.100.1
NETMASK=255.255.255.0
GATEWAY=192.168.100.2
ONBOOT=yes


If you are using DEBIAN,as the Node server OS;


iface veth100.0 inet static
address 192.168.100.2
netmask 255.255.255.0
broadcast 192.168.100.255
gateway 192.168.11.1


If you are using DEBIAN,as the VE container;


iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
gateway 192.168.100.2
dns-nameserver x.x.x.x

As far as specific IPTABLES syntax,I use SHOREWALL firewall,as it
uses configuration files that you can edit.

 
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: Fri Aug 15 15:55:15 GMT 2025

Total time taken to generate the page: 0.48365 seconds