routing for second interface #95
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ in {
|
||||||
path = [pkgs.bash pkgs.iproute];
|
path = [pkgs.bash pkgs.iproute];
|
||||||
script = ''
|
script = ''
|
||||||
ip route add 193.1.96.160/28 dev eth1 src 193.1.96.165 table rt2
|
ip route add 193.1.96.160/28 dev eth1 src 193.1.96.165 table rt2
|
||||||
ip route add default via 193.1.96.165 dev eth1 table rt2
|
ip route add default via 193.1.96.161 dev eth1 table rt2
|
||||||
ip rule add from 193.1.96.165/28 table rt2
|
ip rule add from 193.1.96.165/28 table rt2
|
||||||
ip rule add to 193.1.96.165/28 table rt2
|
ip rule add to 193.1.96.165/28 table rt2
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue