Route command is very helpful for every Linux Administrator, It's manipulate the kernel's IP routing tables. We can use to set up static routes to specific network or hosts via an interface and it has been configured with the ifconfig.

For example the machine name is gunsystem, It's alive and configured with IP  By examining the route and ifconfig output can get in using following command,

Viewing a simple Kernel IP routing table with route,

-n option is show numerical addresses instead of trying to determine symbolic host names.

-C option is operate on the kernel's routing cache. 

-e option is displaying the routing table netstat format

​# route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0
link-local      *          U     1002   0        0 eth0
default         UG    0      0        0 eth0

# route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0     U     1002   0        0 eth0         UG    0      0        0 eth0

List Kernel’s Routing Cache Information
# route -Cn
# route -Cen

Kernel IP routing cache
Source          Destination     Gateway         Flags   MSS Window  irtt Iface             1500 0         57 eth0    l         0 0          0 lo    l         0 0          0 lo             1500 0       1227 eth0    l         0 0          0 lo

Also get IP routing table with route using following commnads,
# ip address show dev eth0

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:16:3e:d6:82:22 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0
    inet6 fe80::216:3eff:fed6:8222/64 scope link 
       valid_lft forever preferred_lft forever

# ip route show dev eth0  proto kernel  scope link  src  scope link  metric 1002 
default via 

#  ip route show dev eth0 table local

broadcast proto kernel  scope link  src 
broadcast  proto kernel  scope link  src 
local  proto kernel  scope host  src 

# ip route list dev eth0  proto kernel  scope link  src dev eth0  scope link  metric 1002 
default via dev eth0 

Use ping command :
# ping -R -c 1 -n

PING ( 56(124) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.059 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.059/0.059/0.059/0.000 ms