OpenVZ Forum


Home » General » Support » *SOLVED* How does OpenVZ pick traceroutes?
*SOLVED* How does OpenVZ pick traceroutes? [message #6802] Fri, 22 September 2006 19:48 Go to next message
dlzinc
Messages: 34
Registered: March 2006
Member
Here's something interesting, how does OpenVZ pick what IP shows up in a traceroute from inside a VPS?

I have a server with the following setup:

eth0 = 192.168.0.1/255.255.255.0
lo = 127.0.0.1
lo:10 = 192.168.3.5/255.255.255.255
lo:11 = 172.21.1.1/255.255.255.255

router 192.168.0.254 (attached to eth0) is configured to route 192.168.3.0/24 and 172.21.1.0/29 to 192.168.0.1

arpsend is a symlink to /bin/true (another device "policies" arp announces for unknown ip addresses on eth0 that I haven't gotten removed yet) to avoid complaints, I know, not the best idea Smile

everything works properly.

traceroutes from outside show 192.168.0.254, 192.168.0.1, then the VPS IP
traceroutes from a VPS show 192.168.3.5 then 192.168.0.254

I've tried adding a lo:9 (no difference)
I've tried having a VPS with only a 192.168.0.x IP (no change)
or only a 172.21.1.x IP (also no change)

So, out of pure curiosity.. how does OpenVZ decide which IP to show in a traceroute from a VPS in this case? It seems to pick it quite arbitrarily...

[Updated on: Fri, 29 September 2006 07:11] by Moderator

Report message to a moderator

Re: How does OpenVZ pick traceroutes? [message #6872 is a reply to message #6802] Tue, 26 September 2006 10:34 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hi,

Yeap, there is such "feature" in OpenVZ. venet0 in HN doesn't have IP address, thus, I guess, first IP (if not 127.0.0.1) of lo interface is used... Smile

vass.
Previous Topic: *SOLVED* changing ostemplate on the fly
Next Topic: Kernel panel with TC Traffic shaping module
Goto Forum:
  


Current Time: Fri Nov 01 22:43:55 GMT 2024

Total time taken to generate the page: 0.03170 seconds