Alter.Org.UA Vote Against Software Patents
 << Back Home RU ru   www/www1/www2

Patch for ROUTE

by Alter (alterX@alter.org.ua (remove X))

Patch for ROUTE from FreeBSD.

ignore errors + batch mode

Patch download:
7.0-STABLEroute-file_ie.70.patch.gz
6.2-RELEASE-p5route-file_ie.62.patch.gz

Adds '-f' switch, which loads set of commands from file. So you can make multiple updates of routing table with single call to route. Each line of file contains single route command. For example:

cmd line
route -f route.rules
route.rules
add 10.0.0.0/24 192.168.0.1
add 10.0.1.0/24 192.168.0.1
change 10.0.2.0/24 192.168.0.2

Also adds '-i' switch to command line. When '-i' is used, all routing commands containing errors will be rejected, but correct commands will be applied. ROUTE shall not stop on the 1st invalid command. It is useful when loading routing rules from file.

route -i -f route.rules

2007.10.15


alterX@alter.org.ua (remove X)
designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002–2007