Advertisement
Guest User

Untitled

a guest
Mar 8th, 2010
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. auto eth0 eth1 eth2
  2.  
  3. iface eth0 inet static
  4. address 192.168.1.2
  5. netmask 255.255.255.0
  6. network 192.168.1.0
  7. broadcast 192.168.1.255
  8. dns-nameservers 192.168.1.2
  9. dns-search internal.domain.com
  10. post-up iptables-restore < /etc/iptables.up.rules
  11. gateway 192.168.1.1
  12. up ip route add table fiber scope link proto kernel dev eth0 192.168.1.0/24
  13.  
  14. iface eth1 inet static
  15. address 10.254.239.1
  16. netmask 255.255.255.0
  17. network 10.254.239.0
  18. broadcast 10.254.239.255
  19. up ip route add table fiber scope link proto kernel dev eth1 10.254.239.0/24
  20.  
  21.  
  22. iface eth2 inet static
  23. address 20.20.20.22
  24. netmask 255.255.255.248
  25. network 20.20.20.20
  26. broadcast 20.20.20.27
  27. up ip route add table fiber scope link proto kernel dev eth2 20.20.20.20/29
  28. up ip route add default via 20.20.20.21 table fiber
  29. up ip rule add fwmark 2 table fiber
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement