OpenVZ Forum


Home » Mailing lists » Users » *SOLVED* howto detect veth ip address
*SOLVED* howto detect veth ip address [message #25197] Mon, 17 December 2007 14:07 Go to next message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
I wonder if it is possible to detect the IP address of a virtual
ethernet device inside VE0? Sure, I can do:

>  vzctl exec 777 ifconfig eth0

but is there a faster way, maybe an ioctl for veth777.0

(VPS777 uses dhcp to get the ip address)

- Dietmar

[Updated on: Mon, 24 December 2007 09:37] by Moderator

Report message to a moderator

Re: howto detect veth ip address [message #25228 is a reply to message #25197] Tue, 18 December 2007 08:47 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello Dietmar,

well, looks like "vzctl exec" is the only way to get the access to the veth settings inside a VE.

Well, slight speedup you can get if you use "ip" command instead of "ifconfig". Smile

Hope using "vzctl exec" is not so slow, isn't it?

--
Konstantin.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
AW: Re: howto detect veth ip address [message #25418 is a reply to message #25228] Mon, 24 December 2007 09:04 Go to previous message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
> well, looks like "vzctl exec" is the only way to get the 
> access to the veth settings inside a VE.
> 
> Well, slight speedup you can get if you use "ip" command 
> instead of "ifconfig". :)
> 
> Hope using "vzctl exec" is not so slow, isn't it?

Sure, vzctl exec ist quite fast.

- Dietmar
Previous Topic: Can I share host ip with guest?
Next Topic: 64-bit host, 32-bit guests and iptables
Goto Forum:
  


Current Time: Tue Mar 19 08:16:51 GMT 2024

Total time taken to generate the page: 0.02425 seconds