<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p> </p>
<div class="moz-forward-container">On 6/10/2017 2:29 PM, Michael
Johnson wrote:<br>
<br>
>> lxc config device add gentoo default nic nictype=bridged
name=eth0 parent=br0 ipv4.address=192.168.0.36/24
ipv6.address=none<br>
<div class="moz-cite-prefix"><br>
where "gentoo" is the container's Alias and "default" the
profile used for the "gentoo" container?<br>
<br>
actually this would be super useful as a short wiki kind
article/topic on <a moz-do-not-send="true"
href="https://discuss.linuxcontainers.org">discuss.linuxcontainers.org</a>
I guess<br>
<br>
<br>
<br>
On 6/10/2017 2:29 PM, Michael Johnson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:17abd474-9fd8-ff57-fcf4-0c4505f63049@cognitech-ut.com">
<pre wrap="">Here is the magic command:
lxc config device add gentoo default nic nictype=bridged name=eth0
parent=br0 ipv4.address=192.168.0.36/24 ipv6.address=none
Issue that after configuring eth0 in the container to have the same
static ip, and configuring a host bridge br0.
No 'lxc network create' nor 'lxc network attach' is needed.
I hope someone else finds this useful.
-Mike
_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org" moz-do-not-send="true">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users" moz-do-not-send="true">http://lists.linuxcontainers.org/listinfo/lxc-users</a>
---
This email has been checked for viruses by AVG.
<a class="moz-txt-link-freetext" href="http://www.avg.com" moz-do-not-send="true">http://www.avg.com</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<span style="font-family: Arial Unicode MS;">Gunnar Wagner | </span><span
style="font-family: Arial Unicode MS;">Yongfeng Village Group
12 #5, Pujiang Town, Minhang District, 201112 Shanghai, P.R.
CHINA </span><br style="font-family: Arial Unicode MS;">
<span style="font-family: Arial Unicode MS;">mob
+86.159.0094.1702 | skype: professorgunrad | wechat:
15900941702</span><br>
</div>
</div>
</body>
</html>