Last active
August 29, 2015 14:05
-
-
Save jurikern/e2eb9aeb052ffa8e1c8c to your computer and use it in GitHub Desktop.
Secondary network interface #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# echo "200 out" >> /etc/iproute2/rt_tables | |
auto eth1 | |
iface eth1 inet static | |
address 172.31.10.172 | |
netmask 255.255.240.0 | |
network 172.31.0.0 | |
broadcast 172.31.15.255 | |
up ip route add default via 172.31.0.1 dev eth1 table out | |
up ip rule add from 172.31.10.172/32 table out | |
up ip rule add to 172.31.10.172/32 table out | |
up ip route flush cache | |
up ip addr add 172.31.1.67/32 dev eth1 | |
up ip rule add from 172.31.1.67/32 table out | |
up ip rule add to 172.31.1.67/32 table out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment