Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. thomas@vmhost:~$ cat /etc/network/interfaces
  2. # This file describes the network interfaces available on your system
  3. # and how to activate them. For more information, see interfaces(5).
  4.  
  5. source /etc/network/interfaces.d/*
  6.  
  7. # The loopback network interface
  8. auto lo
  9. iface lo inet loopback
  10.  
  11. #eno1 is manually configured, and slave to the "bond0" bonded NIC
  12. auto eno1
  13. iface eno1 inet manual
  14. bond-master bond0
  15.  
  16. #eno2-4 ditto, thus creating a 4-link bond.
  17. auto eno2
  18. iface eno2 inet manual
  19. bond-master bond0
  20.  
  21. auto eno3
  22. iface eno3 inet manual
  23. bond-master bond0
  24.  
  25. auto eno4
  26. iface eno4 inet manual
  27. bond-master bond0
  28.  
  29. # bond0 is the bonded NIC and can be used like any other normal NIC.
  30. # bond0 is configured using static network information.
  31. auto bond0
  32. iface bond0 inet manual
  33. #iface bond0 inet static
  34. #address 192.168.10.12
  35. #gateway 192.168.10.1
  36. #netmask 255.255.255.0
  37. #dns-nameservers 192.168.10.1
  38.  
  39. # bond0 uses standard IEEE 802.3ad LACP bonding protocol
  40. bond-mode 4
  41. bond-miimon 100
  42. bond-lacp-rate 1
  43. bond-slaves eno1 eno2 eno3 eno4
  44.  
  45. auto br0
  46. iface br0 inet static
  47. bridge-ifaces bond0
  48. bridge-ports bond0
  49. up ifconfig bond0 up
  50. address 192.168.10.12
  51. gateway 192.168.10.1
  52. netmask 255.255.255.0
  53. dns-nameservers 192.168.10.1
  54.  
  55.  
  56.  
  57.  
  58. thomas@vmhost:~$ lxc profile show default
  59. config: {}
  60. description: Default LXD profile
  61. devices:
  62. eth0:
  63. name: eth0
  64. nictype: bridged
  65. parent: br0
  66. type: nic
  67. name: default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement