[Lxc-users] Determine which veth interface belongs to which container

Yury Vidineev adepty at yandex.ru
Mon Jul 1 15:03:00 UTC 2013


Thank you for the answer! It's almost exactly what I need. But is it possible 
to know name of interfaces without containers restart?

On Monday, July 01, 2013 02:08:10 PM Claudio Kuenzler wrote:
> > Hello
> > Can anyone suggest me a way to determine which veth* interface belongs to
> > which container?
> 
> You have the possibility to add the veth interface name into the lxc config:
> 
> lxc.network.veth.pair = veth0-$name
> 
> 
> Using this, you'll immediately know to which lxc container the interface
> belongs.

-- 
Sincerely,
Yury Vidineev




More information about the lxc-users mailing list