Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ## lxc-netcfg
  2. script to insert some network configs into an lxc container and then start it.
  3. supports replacing `@<nicname>_addr` with the address of `nicname` inside the container.
  4.  
  5. has builtin configs for `bond` and `dhcp4and6`.
  6.  
  7.  
  8. Notes:
  9. * bond is known not working (bonds do not work with ifupdown in a container).
  10. * if 'mode' starts with 'cc', it will write `/etc/cloud/cloud.cfg.d/99-network-config.cfg`
  11. otherwise it will write `/var/lib/cloud/seed/nocloud-net/network-config`
  12. *
  13.  
  14. ### Example config ###
  15. providing dhcp4and6 will write a network config like the following to the /etc/cloud/cloud.cfg.d path.
  16.  
  17. network:
  18. version: 1
  19. config:
  20. - type: physical
  21. name: eth0
  22. mac_address: 00:16:3e:9c:58:7a
  23. subnets:
  24. - type: dhcp
  25. control: auto
  26. - type: dhcp6
  27. control: auto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement