Find LAN Address


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Find LAN Address
# 1  
Old 08-01-2006
Find LAN Address

Hi, I am wondering how I can find the network address under following situation.

Things available:
1. An active network drop without knowing any details about the network.
2. I have windows, Linux, and Solaris machine available to use.

Things to achieve:
1. Find out the details of the network, such as network IP, net mask.

Thanks,
Jason
# 2  
Old 08-01-2006
try ipconfig on windows and ifconfig on unix
# 3  
Old 08-01-2006
jiashi2

Hi, Thanks for the quick replay. ipconfig or ifconfig both read information about the interface on localhost. The issue is that there is no DHCP server on this network(sorry!, I forgot to point it out.), so the interface on localhost will not get IP from other servers.
# 4  
Old 08-01-2006
You are mentioning the network IP and netmask... well, 'ifconfig -a' will give you both those things won't it? Check the below output from my own home network:
Code:
inet addr:192.168.1.24  Bcast:255.255.255.255  Mask:255.255.255.0

Now from the above info, you have the inet addr, and the netmask. You just mask the inet addr using the netmask to get the network address.

Last edited by blowtorch; 08-01-2006 at 08:30 PM.. Reason: oops!
# 5  
Old 08-01-2006
Guys, Jason here seems to be either asking help on his homework assignment, or he's got an illegal feed/piggybacking on someone's wireless connection. Otherwise, how can you not know what network you are in?

Other than that, ask the guy who set up the switch!
# 6  
Old 08-01-2006
jiashi2

Thanks for system shocks' good guess. The funny thing is that there is a drop on the wall at my working place, since this is a big worldwide company, nobody knows which network that drop connects to(does this ever happen at your company? my guess is not!). At first, I thought some kind of broadcast methods can sort things out, but it tiurns out not that easy. This is very interesting thing, don't you agree?

Last edited by jiashi2; 08-02-2006 at 11:36 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies

2. Shell Programming and Scripting

Script to find available IP address

Hi, I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables #!/bin/bash NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1 | grep "^"|sort | uniq )... (6 Replies)
Discussion started by: nemesis911
6 Replies

3. UNIX for Dummies Questions & Answers

How to Find another IP address

Hi Guys, I want to find another(Local host) machine IP address from my machine.. We are all connected in the same server, I mean same LAN. What i done is Connected with that user machine using SSH and SU.. After that i used IFCONFIG but it shows my Ip address. Can not able to get the... (8 Replies)
Discussion started by: Adhi
8 Replies

4. UNIX for Dummies Questions & Answers

Find unique IP address in a list

Hello, I got a list of IP address from which I would like to remove the duplicates. I cat the file and pipe it to uniq -u or uniq -c, I got the same output with all the duplicates. Can anybody please tell me how I can remove the duplicates IPs from this file? This is what I used. cat filename |... (3 Replies)
Discussion started by: Pouchie1
3 Replies

5. IP Networking

Identify unknown LAN server from IP or MAC address

Hi, I just got a little task trying to seemingly find a needle in a haystack. I have a server (FreeBSD) where several NFS mounts are established from a host somewhere on the local LAN with the 192.168.x.x prefix. Needless to say, the guy who set this up wasn't too fond of documenting... (2 Replies)
Discussion started by: brightstorm
2 Replies

6. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

7. AIX

How to find the router IP address

How to find the router IP address (2 Replies)
Discussion started by: AIXlearner
2 Replies

8. HP-UX

how to find the IP address of a printer

I'm trying to find the IP address of a print queue. I tried this, but nada. cat /etc/hosts | lp -d lp01 Looked in the hosts file but it's not there (2 Replies)
Discussion started by: abNORMal
2 Replies

9. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

10. UNIX for Dummies Questions & Answers

How to find i.p address of our server

I don't have root access. How do I find i.p address of our sun server? Thanks. (4 Replies)
Discussion started by: vpotluri
4 Replies
Login or Register to Ask a Question