Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > netstat output

netstat output
Thread Tools
absmiths
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Dec 19, 2003, 02:28 AM
 
When I run netstat I have been getting entries such as these:

Internet:
Destination Gateway Flags Refs Use Netif Expire
169.254 link#4 UCS 0 0 en0
192.168.1 link#5 UCS 2 0 en1

Does anyone know what the link#4 and link#5 refer to? I have tried looking up info, but nothing explains what these lines exactly mean.
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Dec 20, 2003, 04:39 PM
 
Originally posted by absmiths:
When I run netstat I have been getting entries such as these:

Internet:
Destination Gateway Flags Refs Use Netif Expire
169.254 link#4 UCS 0 0 en0
192.168.1 link#5 UCS 2 0 en1

Does anyone know what the link#4 and link#5 refer to? I have tried looking up info, but nothing explains what these lines exactly mean.
Wel, you didn't say which netstat options you're using, but I'm guessing -n.

That said, the link numbers refer to the local interfaces in your machine. The specified interfaces are in the subnets specified - in your case link #4 has an IP address of 169.254.x.x and link 5 is in the 192.168.1.0 subnet.

In other words, these are directly-attached networks that don't need additional routing.

As for the link numbers (why they're #4 and #5 rather than #1 and #2 like you're probably expecting), check the output of ifconfig -a and you'll see that link #1 is usually the loopback interface (lo0). Links 2 and 3 are typically IPv6 interfaces (gif0 and stf0), leaving links 4 and 5 for the typical en0 (ethernet) and en1 (airport)
Gods don't kill people - people with Gods kill people.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:35 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,