Skip to content

Instantly share code, notes, and snippets.

@afelicioni
Created September 9, 2015 21:02
Show Gist options
  • Save afelicioni/800969da59ec3b8df447 to your computer and use it in GitHub Desktop.
Save afelicioni/800969da59ec3b8df447 to your computer and use it in GitHub Desktop.
routing su interfaccia eth1 aggiuntiva, via alice adsl
ip rule add from 192.168.1.254 table alice
ip rule add to 192.168.1.254 table alice
ip route add 192.168.1.0/24 dev eth1 src 192.168.1.254 table alice
ip route add default via 192.168.1.1 dev eth1 table alice
@afelicioni
Copy link
Author

memo: aggiunto su una macchina CentOS in
/etc/rc.d/rc.local

@afelicioni
Copy link
Author

afelicioni commented Mar 20, 2018

tabella da aggiungere in

/etc/iproute2/rt_tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment