LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2009, 02:51 PM   #1
Krishna Pawar
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
How to Check Ip address


Hello,

How can I check free IP address in linux server. as we can see IP address through command ifconfig , but I want to check free IP address which are assigned to my server.

Please can anybody tell me the command as i have searched on internet and was not able to find the command

Thanks.........
 
Old 11-03-2009, 03:22 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Erm?

This is something you have to ask your server's ISP, if you try taking any available IPs within the same network you could very well land yourself in trouble for stealing IPs that do not belong to you. And trust me, I am a datacenter technician, such things are not taken lightly at all.

Last edited by r3sistance; 11-03-2009 at 03:23 PM.
 
Old 11-03-2009, 10:05 PM   #3
chiragrk
Member
 
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 74

Rep: Reputation: 16
If you have a pool of IP address assigned to you, you can find that IP address range by looking at the IP Address and Subnet mask.

Hence if your server IP address is 203.124.220.1/255.255.255.248 then you have pool of IP address 203.124.220.0 - 203.124.220.7 . To find out if they've been assigned to some other machines just ping each one of them and see if you get a reply - This of course will give false positives if you have firewall blocking ICMP protocol.
 
Old 11-03-2009, 10:11 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by chiragrk View Post
If you have a pool of IP address assigned to you, you can find that IP address range by looking at the IP Address and Subnet mask.

Hence if your server IP address is 203.124.220.1/255.255.255.248 then you have pool of IP address 203.124.220.0 - 203.124.220.7 . To find out if they've been assigned to some other machines just ping each one of them and see if you get a reply - This of course will give false positives if you have firewall blocking ICMP protocol.
Not a good way to do it, where I work, we generally assign customers a single IP in a 255.255.255.xxx range, the IPs themselves are actually port and mac address locked for our dedicated servers so customers can't steal IPs from other dedicated servers but just because the 4th octet it isn't a 0 doesn't mean this is a pool for the customer. Also a server ISP are very unlikely to assign you more then 1 or 2 IPs unless you request more, and if they are doing it properly not until the IP usage has been justified in accordance to the IP regulatory body for the region. Like ARIN for North American or RIPE for Europe.

I have experience with this and know that if an ISP didn't do this, they could soon find out one of their rivals or a disgruntled customer could then report them to said regulatory body what could lead to IP auditing. Never had to experienec and audit thankfully but as one of the people who have this role as apart of their job, I am mindful about apathy in assigning IPs to the customers.

Last edited by r3sistance; 11-03-2009 at 11:10 PM. Reason: specifing Dedicated servers
 
Old 11-03-2009, 11:23 PM   #5
simer_anand88
LQ Newbie
 
Registered: Oct 2009
Distribution: Mandriva
Posts: 25

Rep: Reputation: 15
In this case you should definetly talk to your Network Administrator as using a random hit and trial method of checking and assigning free ip address can cause ip conflict in future.

Last edited by simer_anand88; 11-03-2009 at 11:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sendmail - Check for Bad From Address? maxnix Linux - Security 3 02-15-2004 10:55 AM
how to check where ip address is coming from. hornet74 Linux - Networking 6 01-31-2004 02:44 PM
how can i check my ip address? alexii86 Linux - Newbie 8 10-09-2003 05:09 AM
check e-mail address painkiller6.6.6 Programming 10 06-13-2003 06:19 AM
How to check the IP address on a computer. LenkaNguyen Linux - Networking 5 01-28-2002 01:08 PM


All times are GMT -5. The time now is 08:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration