ip route show
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "0" > /proc/sys/net/ipv4/ip_forward
ip route replace to default via ${ip}
ip route delete to default
if test "${route_target}" = "ethernet"; then
ip route replace to ${ip} dev eth${iface_num}
exit $?
elif test "${route_target}" = "forward"; then
ip route replace to ${ip} via ${forward}
exit $?
fi
ip route delete to ${ip}