<div dir="ltr">yea, as suggested by Luis, set it beforehand so you know what connects where. <div><br></div><div>if you are using the default stuff then on host run run :</div><div><br></div><div>ethtool -S <vethif> <br><br>Which will give you the ifindex of veth peer inside container which can be matched using :</div><div><br></div><div>lxc-attach -n <name> -s NETWORK -- /sbin/ip link show eth0<br></div><div><br></div><div>You'd need to iterate though through all and then match them up. Or may be there could be an easier way which'd directly give you that</div><div><br></div><div><br></div><div>Thanks</div><div>Rahul Rege</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 6:32 AM, Luis Michael Ibarra <span dir="ltr"><<a href="mailto:michael.ibarra@gmail.com" target="_blank">michael.ibarra@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Hi, <br><br></div>In /var/lib/lxc/[container]/config, use lxc.network.veth.pair = [name] to assign a particular name for a veth.<br><br></div><div>Regards,<br></div><br><div><div><br><br><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-02-08 19:36 GMT-05:00 tapczan <span dir="ltr"><<a href="mailto:tapczan@unx.pl" target="_blank">tapczan@unx.pl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello<br>
<br>
Is there any way to determine which vethXXX interface is connected to<br>
a particular running LXC container?<br>
<br>
Or even more precisely, which vethXXX interface is connected to a<br>
particular interface inside LXC container, eg.:<br>
<br>
vethL6OCF0 <-> container1: eth0<br>
vethGMSWTE <-> container1: eth1<br>
vethMEG0ME <-> container2: eth0<br>
<br>
Is it possible to get that kind of information?<br>
<br>
Thanks.<br>
<span><font color="#888888"><br>
--<br>
Best Regards<br>
Robert J. (tapczan)<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></font></span></blockquote></div><br><br clear="all"><br></div></div><span class=""><font color="#888888">-- <br><div><div dir="ltr"><div>Luis Michael Ibarra</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div></div>