Advertisement
Guest User

LXD

a guest
Oct 21st, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. $ lxc profile show dualnic
  2. config: {}
  3. description: Default LXD profile
  4. devices:
  5. eth0:
  6. name: eth0
  7. nictype: bridged
  8. parent: br0
  9. type: nic
  10. eth1:
  11. name: eth1
  12. nictype: bridged
  13. parent: natbr0
  14. type: nic
  15. root:
  16. path: /
  17. pool: storage
  18. type: disk
  19. name: dualnic
  20. used_by: []
  21. artur@nas:~$ lxc launch ubuntu:18.04 test -p dualnic
  22. Creating test
  23. Starting test
  24. artur@nas:~$ lxc exec test bash
  25. root@test:~# ip a
  26. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  27. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  28. inet 127.0.0.1/8 scope host lo
  29. valid_lft forever preferred_lft forever
  30. inet6 ::1/128 scope host
  31. valid_lft forever preferred_lft forever
  32. 16: eth0@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  33. link/ether 00:16:3e:41:1e:b8 brd ff:ff:ff:ff:ff:ff link-netnsid 0
  34. inet 172.19.92.178/24 brd 172.19.92.255 scope global dynamic eth0
  35. valid_lft 86370sec preferred_lft 86370sec
  36. inet6 fe80::216:3eff:fe41:1eb8/64 scope link
  37. valid_lft forever preferred_lft forever
  38. 18: eth1@if19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  39. link/ether 00:16:3e:62:d8:cf brd ff:ff:ff:ff:ff:ff link-netnsid 0
  40. inet6 fe80::216:3eff:fe62:d8cf/64 scope link
  41. valid_lft forever preferred_lft forever
  42. root@test:~# cat /etc/netplan/50-cloud-init.yaml
  43. # This file is generated from information provided by
  44. # the datasource. Changes to it will not persist across an instance.
  45. # To disable cloud-init's network configuration capabilities, write a file
  46. # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
  47. # network: {config: disabled}
  48. network:
  49. version: 2
  50. ethernets:
  51. eth0:
  52. dhcp4: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement