Jump to content

How do I read/interpret a (netstat) routing table ?


Recommended Posts

Guest Thommy Kanther
Posted

After entering a command

 

netstat -rn

 

on my computer I am getting the following information (see bottom).

 

Ok, I know this routing table is used to direct TCP/IP packets to their destination.

 

But how do I interpret this table ?

 

For example has a routing command line higher priority the lower it is listed in

the table ?

 

Assume on local computer 192.168.0.14 a TCP-IP packet is arriving with the destination

192.168.0.32

 

Starting with the last entry line and going higher step by step the first line which

matches

the destination mask of the two first columns is

 

192.168.0.0 255.255.255.0 192.168.0.14 192.168.0.14 30

 

Hmm, from my point of view the routing table says the following: Forward the

packet to computer 192.168.0.14 over interface 192.168.0.14. But what makes this for

a sense? This is the local computer. Why should the packet be forward to itself ?

 

Shouldn't be a the entry line as follows:

 

192.168.0.0 255.255.255.0 192.168.0.31 192.168.0.1 30

 

I am a bit confused.

 

Could someone give me a good explanation or direct my to a web pages with

good sample evaluations ?

 

Thank ypu

Thomas

 

 

Active Routes:

Network Destination Netmask Gateway Interface Metric

0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.14 30

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

192.168.0.0 255.255.255.0 192.168.0.14 192.168.0.14 30

192.168.0.14 255.255.255.255 127.0.0.1 127.0.0.1 30

192.168.0.255 255.255.255.255 192.168.0.10 192.168.0.14 30

224.0.0.0 240.0.0.0 192.168.0.10 192.168.0.14 30

255.255.255.255 255.255.255.255 192.168.0.10 192.168.0.14 1

Default Gateway: 192.168.0.1

===========================================================================

Persistent Routes:

None

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...