[PLDWWW] page changed: docs:lxc

"Elan Ruusamäe (glen)" glen at pld-linux.org
Tue Nov 19 23:52:48 CET 2013


[config for network] use xensource mac prefix 00:16:3e

--- https://www.pld-linux.org/docs/lxc?rev=1384900576
+++ https://www.pld-linux.org/docs/lxc
@@ -88,13 +88,12 @@
    - you HAVE to set mac. If not - on every container start you'll have different one (your router will not pass the traffic).
  
  first boot with ''hwaddr'' line disabled, look what the random address was assigned, set it in config.
  
- also you may use some generation techniques like these (assuming the ip is ''192.168.2.160''):
- 
+ also you may use some generation techniques like these: using last three ip numbers and [[http://xenbits.xen.org/docs/4.3-testing/misc/xl-network-configuration.html|Xen's OUI (00:16:3e)]] address space. If IP is ''192.168.2.160'', then:
  <code bash>
- $ printf "02:00:%x:%x:%x:%x" 192 168 2 160
- 02:00:c0:a8:2:a0
+ $ printf "00:16:3e:%x:%x:%x" 168 2 160
+ 00:16:3e:a8:2:a0
  </code>
  
  <file bash>
  lxc.network.type = macvlan


Diff URL:
  https://www.pld-linux.org/docs/lxc?do=diff&r1=1384900576&r2=1384901568
-- 
This mail was generated by DokuWiki at
https://www.pld-linux.org/


More information about the pld-cvs-commit mailing list