OpenVZ Forum


Home » General » Support » Not understanding networking (beware - tons of questions!) [SOLVED]
Re: Not understanding networking (beware - tons of questions!) [message #30025 is a reply to message #30010] Tue, 06 May 2008 12:45 Go to previous messageGo to previous message
jergendutch is currently offline  jergendutch
Messages: 16
Registered: April 2008
Junior Member
Thanks for your help Smile

Can I check I've understood properly?

maratrus wrote on Mon, 05 May 2008 11:48


Hi,

sorry for delay

1.
Quote:


The wiki says that veth is dangerous because a container owner can forge mac addresses and ip addresses, but can't the host protect against this?



How can we change MAC address from inside the VPS? I supposed that it's impossible.




So have I understood correctly?

It is 100% impossible to change the MAC address inside the container for a veth device?

maratrus wrote on Mon, 05 May 2008 11:48



2.
Quote:


I am using Ubuntu inside a container, and I get a default gateway of 192.0.2.1. I have no idea where this comes from and I can't ping it from the container. Should openvz handle this automagically?



One of the /etc/vz/dists/scripts scripts adds this route. If you use simple venet configuration don't bother about this route. Our packets follow to the HN. But we cannot say that this route doesn't make nay sense. We should have any default gateway inside VE otherwise neighbour table inside VE can be overflown.



So inside a VE with venet devices, the gateway is irrelevant - it can be anything?

maratrus wrote on Mon, 05 May 2008 11:48


3.

Quote:


Should I use a default gateway of the host, or of my router inside the container? tcpdump shows the data leaving venet0, but I don't see how the data could ever get back



If you want to set your own configuration because of your network configurations you can change rc.local or other init scripts to put in order your network routes or something.

4.

Quote:


How does the data get back? Smile



Try to listen with "tcpdump" venet interface on HN.




So the host listens for its own ip plus the ip of the VEs too?

maratrus wrote on Mon, 05 May 2008 11:48



5.

Quote:


There are two interfaces in the container, venet0 and venet0:0. The forum mentions this in a few places, but I can't find a post telling me why this exists. I've seen that there are various scripts for different Linux distributions but I can't see how openvz knows that a machine is e.g. Ubuntu. Is this the right direction to be going in? (At the moment I manually edit /etc/network/interfaces to remove the alias.)



Could you please describe the problem in more detail?




Yes, ifconfig shows a device venet0 and a second device venet0.0 in the VE. Why is this? I am using the official Debian VE image with a CentOS host.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Could not compile a package agains the ovz kernel!?
Next Topic: HN and VE IPs on different subnets
Goto Forum:
  


Current Time: Sun Jul 27 18:45:38 GMT 2025

Total time taken to generate the page: 0.61878 seconds