How to figure out what each IP address is used for?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to figure out what each IP address is used for?
# 1  
Old 02-09-2010
How to figure out what each IP address is used for?

Hi,

I have inherited a server at work that has one IP and two virtual IP's. It is live and I want to figure out what each IP is being used for. I thought of NETSTAT but I cannot figure out how to get it to list what each IP is listening for. ANy advice?
# 2  
Old 02-09-2010
Here it is.

Image
Possibly, but most likely not without a subpoena.

In most cases all that can be easily determined is who the person's ISP is and possibly the state and city they reside in.
In some cases with static IP address DSL or business DSL services the ISP provides IP allocation records to the American Registry for Internet Numbers (http://www.arin.net), the non-profit organization responsible for managing Internet numbering resources in North America.
As an example SBC used to include customer information in those allocation records, but due to privacy concerns now uses their own information with a customer reference number. For users who want to afford themselves some additional level of anonymity we suggest you read about internet anonymity, Proxy Servers, and anonymizing services.

Her is a website which you can download a program from and it can locate what is the ip address:

http://whatsmyipaddress.com/staticpa....php/lookup-ip

Thanks

Hannan Saleemi Smilie
# 3  
Old 02-09-2010
@mojoman
Anything to do with hardware and comms is machine specific. Please just this once state which Hardware and Operating System with exact version you are working on today.
# 4  
Old 02-09-2010
@xrwizgr read the question again. Your answer has nothing to do with it.

@mojoman: These should provide the info you want:
Code:
netstat -ant
netstat -anu

The first lists all TCP ports in use, the second the UDP ports. The column "Local Address" will likely list 5 (or 6) possible different addresses
  • 127.0.0.1 is the local host. Those won't accept connections from the outside
  • 0.0.0.0 is a general port. Those listen on any assigned address
  • 3 IPs for the regular & the 2 "virtual" addresses. Everything listed there will listen only on that address
  • Maybe the '::' address if you've got IPv6, where it equals the 0.0.0.0 address.
# 5  
Old 02-09-2010
@pludi
Neither of those netstat commands are valid in mainstream unix.
We need mojoman to post his Operating System and Hardware. In this case it would also help whether IP bonding is configured.
# 6  
Old 02-09-2010
OK, so for any non-Linux UNIX:
Code:
LANG=C netstat -a -n -f inet | grep -E '^(udp|tcp)' | grep 'LISTEN'

Should be valid on BSD (including MacOS X), Solaris, and HP-UX.
# 7  
Old 02-10-2010
Have you tried a tcpdump to see where the traffic on each interface is going?

Code:
tcpdump -i eth0

"0" being the interface number you want to check.

Output should be like this:

Code:
10:13:22.676190 IP source.ssh > destination.1448: P 10521256:10521404(148) ack 51793 win 2264

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

2. Shell Programming and Scripting

Help with change significant figure to normal figure command

Hi, Below is my input file: Long list of significant figure 1.757E-4 7.51E-3 5.634E-5 . . . Desired output file: 0.0001757 0.00751 0.00005634 . . . (10 Replies)
Discussion started by: perl_beginner
10 Replies

3. UNIX for Dummies Questions & Answers

Can't figure out why this repeats

#!/bin/sh while IFS=: read address port; do : ${port:=443} address=$address port=$port cd $f_location number=`grep "$address" thing.txt -A 1 | grep "addresses=" | cut -d'"' -f2` echo "$address,$port,$number,$answer" >>... (9 Replies)
Discussion started by: shade917
9 Replies

4. UNIX for Dummies Questions & Answers

Can't figure this one out --

I'm putting together a shell script while I'm learning UNIX -- just for myself. It's a little script that simply takes some vendor names and writes them to a file. So far I'm at the stage where the user enters the name of the file and places it in a folder called vendorlists: * ) touch... (5 Replies)
Discussion started by: Straitsfan
5 Replies

5. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

6. IP Networking

How do I figure out the subnet?

Hi, How do I get subnet from this: 10.252.0.138/25 Tnx (2 Replies)
Discussion started by: mehrdad68
2 Replies

7. Shell Programming and Scripting

Cant figure out this..

Hi, I need a little help here. I am exporting user info from a PSQL database and everything is working with the exception of this: 10029008:dsAuthMethodStandard\:dsAuthClearText:classword:10029008:2004:10029008:10029008:/home/student/1002/90/08:10029008 It is putting a colon right before the... (1 Reply)
Discussion started by: Stud33
1 Replies

8. Shell Programming and Scripting

Can't figure out else not matching

All, I appreciate any help you can provide on this. I get an "else unmatched" error with this code and can't figure out why. If I remove the 1st if statement through the 1st else the script runs through fine. Any thoughts? #decrypt file sudo -u gpg /usr/bin/gpg... (4 Replies)
Discussion started by: peteroc
4 Replies

9. UNIX for Dummies Questions & Answers

figure it out

hi there i am new to this site and this linux and unix stuff so kind of plz help me out hoe to start the stuff.... (1 Reply)
Discussion started by: cool_dude
1 Replies

10. UNIX for Dummies Questions & Answers

i can not figure this out

I am having problems scripting in UNIX. I am currently attending school and for the first time I am being introduced to scripting. My problem is I am supposed to enhance the spell_check by adding a third optional argument. The third argument is to specify a list of words to be added to the... (1 Reply)
Discussion started by: steph
1 Replies
Login or Register to Ask a Question