Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::/etc/pve/lxc/101.conf
- arch: amd64
- cores: 1
- hostname: spv2
- memory: 1536
- 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
- net1: name=eth1,bridge=vmbr0,firewall=1,hwaddr=56:EF:41:5D:63:F7,ip=dhcp,ip6=dhcp,tag=2,type=veth
- onboot: 1
- ostype: ubuntu
- rootfs: local-lvm:vm-101-disk-1,size=8G
- swap: 1536
- ::/etc/network/interfaces
- auto lo
- iface lo inet loopback
- iface lo inet6 loopback
- # interfaces(5) file used by ifup(8) and ifdown(8)
- # Include files from /etc/network/interfaces.d:
- source-directory /etc/network/interfaces.d
- auto eth0
- iface eth0 inet static
- address 192.168.2.147
- netmask 255.255.255.255
- # — BEGIN PVE —
- post-up ip route add 192.168.2.1 dev eth0
- post-up ip route add default via 192.168.2.1 dev eth0
- pre-down ip route del default via 192.168.2.1 dev eth0
- pre-down ip route del 192.168.2.1 dev eth0
- # — END PVE —
Advertisement
Add Comment
Please, Sign In to add comment