LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2008, 12:15 PM   #1
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Rep: Reputation: 32
RESOLVED: netstat lists interface that is not present


Hi LQers,

I have been working with a RHEL5 box that some one else installed. They did not know what they were doing and so used the "kitchen sink install method", as I like to call it (i.e. if it can be installed, it was installed). Stuff like the xen kernel was installed (which I have no real experience with).

Now I am trying to troubleshoot why a network service we are developing isn't working correctly. netstat is displaying a connection which neither endpoint is part of the box. Any ideas why I might be seeing this? And how to fix it / make it go away?



The issue was apparently related to the network service. Grrrr.

Last edited by Hewson; 07-25-2008 at 12:06 PM. Reason: problem was resovled
 
Old 07-23-2008, 11:41 PM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
Can you copy/paste the output of netstat here?

XEN installs about 10 VIFs and a bridge or two, but shouldn't affect networking for dom0 unless you customized it (e.g. turned on vlan tags or changed the interface of dom0). You can always just disable XEN and delete the VIFs/bridges.

Last edited by kenoshi; 07-23-2008 at 11:42 PM.
 
Old 07-25-2008, 12:19 PM   #3
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Original Poster
Rep: Reputation: 32
It wasn't XEN related. After further investigation I found out that netstat trims long IP addresses so that column layout stays intact. '-T' turns this off. It was a simple PEBKAC problem.

Instead of displaying the whole IP address it was displaying only 2 of the 3 digits of the last octet. A glance at this output from netstat and I started thinking that I had a phantom interface. I then saw the same issue on other machines (which also had the same first 3 IPV4 octets, as well as, the same first 2 digits of the last octect for their IPs). At this point I started thinking that the developers bound their service to some fictitious address so that different processes of the same service could communicate (which, of course, isn't a very good idea...). Finally I realized netstat was trimming the columns so they would look pretty and by co-incidence the other machine's addresses where close enough to mine that I only further confused myself.
 
  


Reply

Tags
netstat, xen



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh murugesan Linux - Newbie 3 04-14-2009 10:53 PM
ndiswrapper shows 'driver present, hardware present' but no wlan0 0x12d3 Linux - Wireless Networking 2 05-11-2007 07:43 PM
WPA support through 'ndiswrapper' interface is deprecated; use 'wext' interface lavie Linux - Wireless Networking 1 12-04-2006 11:13 AM
Ubuntu: driver present, hardware present, now what! Nathan1993 Linux - Wireless Networking 2 03-12-2006 06:19 PM
ndiswrapper - driver present:harware present but no connection esteeven Linux - Wireless Networking 2 12-26-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration