Advertisement
Guest User

Untitled

a guest
Jan 5th, 2016
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3.  
  4. source /etc/network/interfaces.d/*
  5.  
  6. # The loopback network interface
  7. auto lo eth0 vmbr0
  8. iface lo inet loopback
  9. iface eth0 inet static
  10. address 5.xxx.xxx.192
  11. netmask 255.255.255.255
  12. broadcast 5.xxx.xxx.192
  13. post-up route add 149.xxx.xxx.254 dev eth0
  14. post-up route add default gw 149.xxx.xxx.254
  15. pre-down route del 149.xxx.xxx.254 dev eth0
  16. pre-down route del default gw 149.xxx.xxx.254
  17.  
  18. iface eth0:0 inet static
  19. address 5.xxx.xxx.193
  20. netmask 255.xxx.xxx.255
  21. broadcast 5.xxx.xxx.193
  22. post-up route add 149.xxx.xxx.254 dev eth0
  23. post-up route add default gw 149.xxx.xxx.254
  24. pre-down route del 149.xxx.xxx.254 dev eth0
  25. pre-down route del default gw 149.xxx.xxx.254
Advertisement
RAW Paste Data Copied
Advertisement