Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netstat command question - Simple 1

Status
Not open for further replies.

franksoprano

Technical User
Apr 13, 2002
249
US
I have a question as I am unsure what a part of the out put from the "netstat" command is...

When the command "netstat -rn" is executed what does the - UGc, UGHW, U, mean? if displayed correctly they are below thge (Internet):.....


[/]netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default x.x.x.x UGc 0 0 en0 - -
x.x.x.x x.x.x.x UGHW 1 493 en0 1500 -
127/8 127.0.0.1 U 5 857 lo0 - -
x.x/16 x.x.x.x U 8 94495 en0 - -
x.x.x.x x.x.x.x UGHW 1 35 en0 - -
x.x.x/24 x.x.x.x U 37 461221 en1 - -
x.x.x.x x.x.x.x UGHW 1 3 en0 - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 196 -
[/]
 
Hi,

U: Up
G: The route is to a gateway
H: The route is to a host rather than to a network
W: The route is a cloned route

As one used to say, man(1) is your friend ...
 
NWardez,

Thanks! I had a hunch thats what they meant but I wanted to find out for sure instead of just guessing!!

I appreciate your help!!

Frank
 
You're welcome

By the way, "man(1) is your friend" comes from dawookie (Solaris forum), and there's probably copyright ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top