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