#!/bin/sh

GW_Interface=`/usr/bin/gw` 

ip a show dev $GW_Interface |grep "inet "|awk {'print $2'}|awk -F"/" {'print $1'}
