1823726 Members
3521 Online
109664 Solutions
New Discussion юеВ

Netstat

 
Habib_4
Advisor

Netstat

Hi guys,

Thank God for this forum!

Was just wondering, what are the different types of addresses that are found when you do a
netstat -rn?
Broadcast addresses etc, how can you identify what address is for which device?

Cheers
3 REPLIES 3
Antonio Cardoso_1
Trusted Contributor

Re: Netstat

Habib,

- lanscan will give you the list of interfaces on your system.
- then ifconfig on each of them will give you corresponding address.

is it what you were looking for ?

antonio.
Robert Bennett_3
Respected Contributor

Re: Netstat

netstat ├в r shows the gateway routing tables.
The Flags field may contain any or all of U, G or H.
U - The router is up and running
G - The router entry is a gateway (means a remote router).
H - The destination is a host, not a network.
The Refs field gives the current number of active uses of the route.
The Use count is cumulative since the last activation of the network interface. It provides a count of the number of packets sent using that route.
Pmtu is the maximum transmission unit (maximum frame size).
Each ifconfig command adds an entry to this routing table. If you have only one LAN interface, two entries will be displayed: the logical local loopback pseudo interface and your only LAN card. If you configure additional routes in /etc/rc/config.d/netconf, each route command will add a new line to the routing table.
note - the n shows the network addresses as numbers rather than symbolically.
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
Asif Sharif
Honored Contributor

Re: Netstat

Salam Habib,
See the following link.

http://docs.hp.com/en/B2355-60127/netstat.1.html

-r Show the routing tables.
-n Show network addresses as numbers (normally netstat interprets addresses and attempts to display them symbolically). This option can be used with any available display format.

Redgards,
Asif Sharif
Regards,
Asif Sharif