Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## lxc-netcfg
- script to insert some network configs into an lxc container and then start it.
- supports replacing `@<nicname>_addr` with the address of `nicname` inside the container.
- has builtin configs for `bond` and `dhcp4and6`.
- Notes:
- * bond is known not working (bonds do not work with ifupdown in a container).
- * if 'mode' starts with 'cc', it will write `/etc/cloud/cloud.cfg.d/99-network-config.cfg`
- otherwise it will write `/var/lib/cloud/seed/nocloud-net/network-config`
- *
- ### Example config ###
- providing dhcp4and6 will write a network config like the following to the /etc/cloud/cloud.cfg.d path.
- network:
- version: 1
- config:
- - type: physical
- name: eth0
- mac_address: 00:16:3e:9c:58:7a
- subnets:
- - type: dhcp
- control: auto
- - type: dhcp6
- control: auto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement