Advertisement
Guest User

Untitled

a guest
Jul 4th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.41 KB | None | 0 0
  1. # Loopback device:
  2. auto lo
  3. iface lo inet loopback
  4. iface lo inet6 loopback
  5.  
  6. # device: eno1
  7. auto eno1
  8. iface eno1 inet static
  9.   # Single Host IPv4 address
  10.   address   95.217.xx.xxx
  11.   netmask   255.255.255.192
  12.   # The Hetzner Gateway IP
  13.   gateway   95.217.xx.xx
  14.   # route 95.217.xx.xxx/26 via 95.217.xx.xxx
  15.   up route add -net 95.217.xx.xxx netmask 255.255.255.192 gw 95.217.xx.xxx dev eno1
  16.  
  17. iface eno1 inet6 static
  18.   # We gave our Host a single IPv6
  19.   address 2a01:xx:xx:xxxx::2
  20.   # /128 because our Bridge has the whole /64 Subnet!
  21.   netmask 128
  22.   # The Hetzner IPv6 Gateway
  23.   gateway fe80::1
  24.  
  25. # VM-Bridge used by Proxmox Guests
  26. auto vmbr0
  27. iface vmbr0 inet static
  28.   # Our Host will be the Gateway for all VM's
  29.   address 95.217.xx.xx
  30.   netmask 255.255.255.192
  31.   # Some basic bridge configuration
  32.   bridge_stp off
  33.   bridge_ports none
  34.   bridge_fd 0
  35.   bridge_maxwait 0
  36.  
  37.   # Add all single IP's from your /29 subnet
  38.   up route add -host 95.216.xx.xx dev vmbr0
  39.   up route add -host 95.216.xx.xx dev vmbr0
  40.   up route add -host 95.216.xx.xx dev vmbr0
  41.   up route add -host 95.216.xx.xx dev vmbr0
  42.   up route add -host 95.216.xx.xx dev vmbr0
  43.   up route add -host 95.216.xx.xx dev vmbr0
  44.   up route add -host 95.216.xx.xx dev vmbr0
  45.   up route add -host 95.216.xx.xx dev vmbr0
  46.  
  47. iface vmbr0 inet6 static
  48.   # Our Host again as the Gateway
  49.   address 2a01:xxx:xx:xxxx::2
  50.   # Here we use the /64 subnet!
  51.   netmask 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement