Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  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. # The loopback network interface
  5. auto lo
  6. iface lo inet loopback
  7.  
  8. # The primary network interface
  9. auto eth0
  10. iface eth0 inet dhcp
  11.  
  12. auto eth0:1
  13. iface eth0:1 inet static
  14. address 10.0.0.211
  15. netmask 255.255.0.0
  16.  
  17. auto eth1
  18. iface eth1 inet static
  19. address 10.131.192.13
  20. netmask 255.255.255.0
  21. up /sbin/ip rule add from 10.131.192.13 lookup 20
  22. up /sbin/ip rule add from 10.131.192.13 to 10.131.192.0/24 lookup main
  23. up /sbin/ip route add default via 10.131.192.13 table 20
  24. auto eth1:0
  25. iface eth1:0 inet static
  26. address 10.131.192.12
  27. netmask 255.255.255.0
  28. up /sbin/ip rule add from 10.131.192.12 lookup 20
  29. up /sbin/ip rule add from 10.131.192.12 to 10.131.192.0/24 lookup main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement