#!/bin/bash #/sbin/ip route replace default via $4 table ffmyk sleep 3 echo Reroute via $4 ip route replace 0.0.0.0/1 via $4 table ffmyk ip route replace 128.0.0.0/1 via $4 table ffmyk exit 0