LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2016, 01:00 PM   #1
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Rep: Reputation: 18
What is the ip of my headless.


I have a Gentoo headless wired to an xfinity DHCP. I could check via logging into the router, but that is not an option at the moment, the browser just hangs. It works sometimes. That is another issue to be dealt with. I'm not looking to fix the router. Is there any way of using nmap or something to find that box?
 
Old 03-18-2016, 03:18 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,879
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Really the way to find it would be to look at the address assigned by the router, and that's exactly what you said won't work.

How about configuring the Gentoo for a static IP beyond the range where you'd expect a normal DHCP address to be assigned, but within the allowable list of IP addresses your router will accept.

There is no way to put a monitor and keyboard or serial console onto that Gentoo station?
 
Old 03-18-2016, 03:27 PM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
If you are on the same network you can use fping

fping -qag <prefix> will give you the ips of all the responding things on the network

fping -qag 192.168.0.0/24
 
Old 03-18-2016, 03:28 PM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,288
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
You could use nmap to scan the appropriate subnet, something like this:

Code:
nmap -sn 192.168.1.0/24
Or maybe "arp" might work.
 
1 members found this post helpful.
Old 03-18-2016, 03:38 PM   #5
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Turbocapitalist View Post
You could use nmap to scan the appropriate subnet, something like this:

Code:
nmap -sn 192.168.1.0/24
Or maybe "arp" might work.
The router is 10.0.0.1 would I use that in place of 192.168.1.0? I think it should have a static IP, but I don't know much in the networking world. I can try the router again. The problem with the xfinity router is that I have to login with the wired desktop it seems, and if you bogger the password, it becomes unresponsive. Unplugging the router gives you another shot, it's just a royal pain. Sometimes I can login and sometimes I can't. It's crap shoot. I'll give it a shot though. Anyone have any links off hand on how to setup the static IP?
 
Old 03-18-2016, 03:44 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,288
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
Quote:
Originally Posted by kb2tfa View Post
The router is 10.0.0.1 would I use that in place of 192.168.1.0? I think it should have a static IP, but I don't know much in the networking world.
Yes, almost. It would be 10.0.0.0/24 but also the /24 will vary depending on the range addresses your router doles out.
 
Old 03-18-2016, 03:51 PM   #7
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Turbocapitalist View Post
Yes, almost. It would be 10.0.0.0/24 but also the /24 will vary depending on the range addresses your router doles out.
Code:
Starting Nmap 6.40 ( http://nmap.org ) at 2016-03-18 16:47 EDT
Nmap scan report for 10.0.0.1
Host is up (0.016s latency).
Nmap scan report for 10.0.0.2
Host is up (0.017s latency).
Nmap scan report for 10.0.0.4
Host is up (0.023s latency).
Nmap scan report for 10.0.0.7
Host is up (0.0044s latency).
Nmap scan report for 10.0.0.9
Host is up (0.00021s latency).
Nmap done: 256 IP addresses (5 hosts up) scanned in 15.86 seconds
After trying a couple, I found it. Thank you. Now I will have to setup a static IP to avoid this. I use the headless just for a sandbox, but from time to time the router will get rebooted.
 
  


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
[SOLVED] Best WM for a Mostly Headless Server? DJOtaku Linux - Desktop 8 08-28-2015 11:40 AM
Headless browsing. cov Linux - Server 1 03-09-2010 05:44 AM
hp-ux headless installation kpachopoulos Other *NIX 2 01-20-2005 05:12 AM
going headless? the bishop Mandriva 5 06-24-2004 02:44 AM
headless server gravij Linux - General 2 06-06-2004 07:24 AM

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

All times are GMT -5. The time now is 06:37 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
Open Source Consulting | Domain Registration