1827807 Members
2746 Online
109969 Solutions
New Discussion

Re: netstat -rn output

 
SOLVED
Go to solution
Shivkumar
Super Advisor

netstat -rn output

In the output of "netstat -rn" we get an ip in front of the defualt field under the column gateway as shown below:
Destination Gateway
default 192.151.52.8

Can anyone tell what does it mean ?

Thanks,
Shiv
9 REPLIES 9
Devender Khatana
Honored Contributor

Re: netstat -rn output

Hi,

This referes to the default gateway of the system. All the IP's which are not listed anywhere else in the output will be tried to reach out through this IP.

HTH,
Devender
Impossible itself mentions "I m possible"
Joseph Loo
Honored Contributor

Re: netstat -rn output

hi shiv,

do u mean the IP address, 192.151.52.8 next to default? if so, that will be your gateway which is inserted to /etc/rc.config.d/netconf under ROUTE_GATEWAY.

regards.
what you do not see does not mean you should not believe
Adisuria Wangsadinata_1
Honored Contributor

Re: netstat -rn output

Hi Shiv,

The gateway of your system is 192.151.52.8
Double check with /etc/rc.config.d/netconf, you should see something like below :

ROUTE_GATEWAY[x]=192.151.52.8

Hope this information can help.

Cheers,
AW


now working, next not working ... that's unix
Rajeev  Shukla
Honored Contributor

Re: netstat -rn output

Hi Shiv,
Default in front of the IP address here means that this is the default route for your system. Which means that when your application tries to access IP address outside the subnet of your server then they are all forwarded to this default route (could be a router or a system acting as router)
Yogeeraj_1
Honored Contributor

Re: netstat -rn output

hi,

default 192.151.52.8 indicates your default gateway.

in your /etc/rc.config.d/netconf, you should be having something like:
...
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.151.52.8"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
...

NB. One piece of advice, is "Don't post your private information like you have done here." This is very dangerous in the world of hackers and crual social engineers.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Himanshu_3
Valued Contributor
Solution

Re: netstat -rn output

Shiv,

For every IP address there should be a gateway defined. This gateway is the interface to the output world for all its data excahnge, where it recieves the data and transmits the data to/from the gateway.

As an example to the practical scenerio, we have two interfaces (IP) defined on our system and both the interfaces are been used for different purposes, where one is the gigabit lan which is used in case of backup to the backup tsm server and the other is the normal ethernet connection for its day to day connection activities.Bothe the interfaces have their own IP addresses and own gateways.

Hope this clears your concept.

Regards,
Himanshu
Mahesh Kumar Malik
Honored Contributor

Re: netstat -rn output

Hi Shiv

Default 192.151.52.8 is configured ip address of default gateway in the systems. You may see the same information with complete details of network configuration in /etc/rc.confid.d/netconf file

Regards
Mahesh
Cem Tugrul
Esteemed Contributor

Re: netstat -rn output

Shiv,

default 192.151.52.8 shows your default gateway and as Himanshu's told "For every IP address there should be a gateway defined"
you can also see this ip address on your;
/etc/rc.config.d/netconf
Finally,i am fully agree with Rogeeraj as
he told ""Don't post your private information like you have done here..This is very dangerous in the world of hackers and crual social engineers" unless
i also sometimes give my private address.

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Shivkumar
Super Advisor

Re: netstat -rn output

i got the answer. thanks.