Default Gateway in Linux

$ ip r
$ ip route show
(iproute2:ip,ss,ctstat,rtstat,bridge,devlink,rtacct,rtmon,tc,tipc,lnstat,nstat,rdma,routef,routel,arpd,genl)
$ sudo route -n (Flags:UG u=up, g=gateway)
$ netstat -rn (Flags:UG u=up, g=gateway)
(net-tools:netstat,route,arp,rarp,ifconfig,plipconfig,ipmaddr,iptunnel,mii-tool,nameif,slattach )

for Debian based systems
$ cat /etc/network/interfaces
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1

for RHEL based systems:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
BOOTPROTO=none
NM_CONTROLLED=”yes”
ONBOOT=yes
TYPE=”Ethernet”
UUID=”bcb0a409-d7d4-4f2f-882f-ec46e07e670d”
HWADDR=08:00:27:A6:0C:AC
IPADDR=192.168.1.200
PREFIX=24
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=192.168.1.200
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=”System eth0″