Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Something
Friday, June 12th, 2015 at 12:56:25am UTC 

  1. auto lo
  2. iface lo inet loopback
  3.  
  4. post-up ip route add default scope global nexthop via 10.10.10.254 dev eth0 weight 1 nexthop via 10.10.10.126 dev eth1 weight 1
  5.  
  6. #uplink1
  7. auto eth0
  8. iface eth0 inet static
  9.         address 10.10.10.220
  10.         netmask 255.255.255.128
  11.  
  12.         post-up ip route add 10.10.10.254/32 dev eth0 src 10.10.10.220 table uplink1
  13.         post-up ip route add default via 10.10.10.254 table uplink1
  14.         post-up ip rule add from 10.10.10.220 table uplink1
  15.         post-down ip rule del from 10.10.10.220 table uplink1
  16.  
  17. #uplink2
  18. auto eth1
  19. iface eth1 inet static
  20.         address 10.10.10.120
  21.         netmask 255.255.255.128
  22.  
  23.         post-up ip route add 10.10.10.126/32 dev eth1 src 10.10.10.120 table uplink2
  24.         post-up ip route add default via 10.10.10.126 table uplink2
  25.         post-up ip rule add from 10.10.10.120 table uplink2
  26.         post-down ip rule del from 10.10.10.120 table uplink2

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right