Skip to content

Instantly share code, notes, and snippets.

@jackun
Created November 5, 2018 16:49
Show Gist options
  • Save jackun/1564f6387d902576a06b5948259fa443 to your computer and use it in GitHub Desktop.
Save jackun/1564f6387d902576a06b5948259fa443 to your computer and use it in GitHub Desktop.
Two routing tables
Interface=enp3s0
Connection=ethernet
IP=static
Address=('192.168.0.3/24' '192.168.1.3/24')
Gateway=('192.168.0.254')
DNS=('192.168.0.254' '1.1.1.1')
# custom routing on 192.168.1.0/24
# echo 1 telia >> /etc/iproute2/rt_tables
IPCustom=('route add 192.168.1.0/24 dev enp3s0 src 192.168.1.3 table telia'
'route add default via 192.168.1.1 dev enp3s0 table telia'
'rule add from 192.168.1.3/32 table telia'
'rule add to 192.168.1.3/32 table telia')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment