how to save iproute

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Say if I have a few routes like this 

ip rule add from 19.21.12.12 lookup 200
ip route add default via 10.0.0.253
ip rule add to 13.1.2.2 lookup 201
ip route add default via 10.0.0.254
ip route add default via 10.0.0.254

How do I save them, I have looked through the list and have googled this
Q for some time and do not have an concrete answers. I have read that
you just save and rerun the command but that does not work as the "from
all to" is not valid it has to be the "to" without the "from all". I
have used multiple versions of iproute2 and still the same problem. I
written a script and put in many sed's to get around problems but its
nasty code. Surely someone solved this is there a "saveall" script or
bin that is distro independant. 

Thanks.



_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux