rkantos

Untitled

Nov 4th, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ::/etc/pve/lxc/101.conf
  2. arch: amd64
  3. cores: 1
  4. hostname: spv2
  5. memory: 1536
  6. net0: name=eth0,bridge=vmbr0,gw=192.168.2.1,hwaddr=16:E0:21:6E:03:B8,ip=192.168.2.147/24,tag=3,type=veth
  7. net1: name=eth1,bridge=vmbr0,firewall=1,hwaddr=56:EF:41:5D:63:F7,ip=dhcp,ip6=dhcp,tag=2,type=veth
  8. onboot: 1
  9. ostype: ubuntu
  10. rootfs: local-lvm:vm-101-disk-1,size=8G
  11. swap: 1536
  12.  
  13. ::/etc/network/interfaces
  14. auto lo
  15. iface lo inet loopback
  16. iface lo inet6 loopback
  17.  
  18. # interfaces(5) file used by ifup(8) and ifdown(8)
  19. # Include files from /etc/network/interfaces.d:
  20. source-directory /etc/network/interfaces.d
  21.  
  22. auto eth0
  23. iface eth0 inet static
  24. address 192.168.2.147
  25. netmask 255.255.255.255
  26. # — BEGIN PVE —
  27. post-up ip route add 192.168.2.1 dev eth0
  28. post-up ip route add default via 192.168.2.1 dev eth0
  29. pre-down ip route del default via 192.168.2.1 dev eth0
  30. pre-down ip route del 192.168.2.1 dev eth0
  31. # — END PVE —
Advertisement
Add Comment
Please, Sign In to add comment