|
Last change
on this file since 10647 was 10647, checked in by rick, 14 years ago |
|
Need an tools to sync fib tables.
Related-To: nodefactory#129
|
-
Property svn:executable
set to
*
|
|
File size:
278 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh -
|
|---|
| 2 | #
|
|---|
| 3 | # Clone routing table SRC into routing table DST
|
|---|
| 4 | #
|
|---|
| 5 | # Rick van der Zwet <rick@wirelessleiden.nl>
|
|---|
| 6 | #
|
|---|
| 7 | SRC=${1:-0}
|
|---|
| 8 | DST=${2:-1}
|
|---|
| 9 | setfib $DST route -qn flush && setfib $SRC netstat -nr | grep -v 'default' | awk '/UGD/ {print "setfib '"$DST"' route -q add "$1" "$2}' | sh
|
|---|
| 10 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.