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
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1002   0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

or
 
# route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0


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

Kernel IP routing cache
Source          Destination     Gateway         Flags   MSS Window  irtt Iface
192.168.5.20    66.49.75.4   50.28.66.1             1500 0         57 eth0
31.184.135.205  192.168.5.20    192.168.5.20    l         0 0          0 lo
85.25.109.160   192.168.5.20    192.168.5.20    l         0 0          0 lo
192.168.5.20    37.193.251.108  50.28.66.1             1500 0       1227 eth0
213.33.98.173   192.168.5.20    192.168.5.20    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 192.168.1.100/22 brd 192.168.1.255 scope global eth0
    inet6 fe80::216:3eff:fed6:8222/64 scope link 
       valid_lft forever preferred_lft forever

or
 
# ip route show dev eth0

192.168.1.0/22  proto kernel  scope link  src 192.168.1.100 
11.154.0.0/16  scope link  metric 1002 
default via 192.168.1.1 

or
 
#  ip route show dev eth0 table local


broadcast 192.168.1.0 proto kernel  scope link  src 192.168.1.100 
broadcast 192.168.1.255  proto kernel  scope link  src 192.168.1.100 
local 192.168.1.100  proto kernel  scope host  src 192.168.1.100 

# ip route list

192.168.1.0/22 dev eth0  proto kernel  scope link  src 192.168.1.100 
19.214.0.0/16 dev eth0  scope link  metric 1002 
default via 192.168.1.1 dev eth0 


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

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

--- 192.168.1.100 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