[solved] questions and issues about veth [message #36347] |
Fri, 12 June 2009 05:38 |
Balbuzard
Messages: 26 Registered: March 2009 Location: Australia
|
Junior Member |
|
|
Hey,
I have read and followed the instructions of the wiki about the configuration of a virtual ethernet network (veth) and it is working perfectly for my first VPS.
I have set an IP-address in my VPS editing the /etc/network/interfaces file, and I can therfore ping the host or some websites.
I just would like to know why the vzlist command does not return the VPS-IP-Address? vzlist returns CTID, NPROC, STATUS (running) HOSTNAME but nothing for IP_ADD.
Then, why the host virtual ethernet device disappears when I reboot the VPS?
Thank you very much for your help!
[Updated on: Fri, 12 June 2009 11:18] by Moderator Report message to a moderator
|
|
|
Re: questions and issues about veth [message #36350 is a reply to message #36347] |
Fri, 12 June 2009 08:57 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi,
looks like you solved the problem of several Containers with veth. That's good.
Quote: | I just would like to know why the vzlist command does not return the VPS-IP-Address? vzlist returns CTID, NPROC, STATUS (running) HOSTNAME but nothing for IP_ADD.
|
vzlist will show you CT IP if you set up this IP with help of vzctl. And if you set it up from inside a CT (like you did) - it won't.
Quote: | Then, why the host virtual ethernet device disappears when I reboot the VPS?
|
This is because veth is not a single interface, it always consists of 2 parts - 2 ends - one is inside a CT and the other is outside (on the Hardware Node). When you stop the CT, you remove the veth part that is inside a CT, thus the second half (on HN) is also removed.
Hope this helps.
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|