LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   What is the ip of my headless. (https://www.linuxquestions.org/questions/linux-networking-3/what-is-the-ip-of-my-headless-4175575289/)

kb2tfa 03-18-2016 01:00 PM

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?

rtmistler 03-18-2016 03:18 PM

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?

estabroo 03-18-2016 03:27 PM

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

Turbocapitalist 03-18-2016 03:28 PM

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.

kb2tfa 03-18-2016 03:38 PM

Quote:

Originally Posted by Turbocapitalist (Post 5517852)
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?

Turbocapitalist 03-18-2016 03:44 PM

Quote:

Originally Posted by kb2tfa (Post 5517862)
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.

kb2tfa 03-18-2016 03:51 PM

Quote:

Originally Posted by Turbocapitalist (Post 5517864)
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.


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