[Devel] Why use FAKEGATEWAY{,NET} instead of default dev venet0?

Denis V. Lunev den at parallels.com
Tue Oct 14 00:51:46 PDT 2008


On Fri, 2008-09-12 at 13:08 +0400, Peter Volkov wrote:
> Hello.
> 
> I have a question which puzzles me from the the very beginning I've
> started to use OPENVZ. venet0 is peer-to-peer device. Why openvz scripts
> set some $FAKEGATEWAYNET network on p2p device and then put nonexistent
> $FAKEGATEWAY as a gateway there? Seems that it's much more simple and
> clean way to setup networking is:
> 
> # route add default dev venet0
> or 
> # ip route add default dev venet0
> 
> Are there any drawbacks of this solution? I'm going to modify
> gentoo-{add,del}_ip.sh scripts but is it good idea?
> 
> I've already tried to search and asked this question on forums but still
> got no answer there.
> 
> Please, give me any comments. Thank you in advance,

The answer is quite simple. Without a gateway you'll have a neighbour
entry for each incoming/outgoing destination.

Regards,
	Den




More information about the Devel mailing list