find ip on local network with a gnu/linux tool

Kernels & Hardware, configuring network, installing services

find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-19 19:01

Hello
i use advanced ip scanner (ipscan25) on windows for fin the ip of my nas,but i dont like that.
I want to use only linux so i try to use nmap or zenmap but i ave no succes.And probably the ip is diferent if i use gnu/linux our windows.
Thanks to help me.
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby Segfault » 2017-11-19 19:27

Why don't you use static IP address for your NAS?
Segfault
 
Posts: 557
Joined: 2005-09-24 12:24

Re: find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-19 19:31

the default ip is the same i find with the program in windows,but i can't find it with linux.
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby GarryRicketson » 2017-11-19 20:18

Last edited by GarryRicketson on 2017-11-19 20:22, edited 1 time in total.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4475
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: find ip on local network with a gnu/linux tool

Postby Head_on_a_Stick » 2017-11-19 20:19

Please post the output of
Code: Select all
ip r
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6810
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-19 20:52

[quote="GarryRicketson"]I wonder if the OP is even using Debian, ? " Linux" could be any of the 100s
of linux distros, :?:
The frimware of the nas is buld on linux,and he is ok with linux OS,i use debian.
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-19 20:53

it's a qnap 219p
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-20 21:17

# man ifconfig and # ip r don't work.
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby RU55EL » 2017-11-20 21:32

If you are looking to scan your local network with GNU/Linux to find your NAS ip, try nmap. (For Windows I use angry ip scanner)

For example:
Code: Select all
russel@NUC-G:~$ nmap 192.168.2.0/24

Starting Nmap 7.40 ( https://nmap.org ) at 2017-11-20 14:17 PST
Nmap scan report for 192.168.2.xxx
Host is up (0.015s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
80/tcp open  http

Nmap scan report for 192.168.2.xxx
Host is up (0.000049s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 256 IP addresses (2 hosts up) scanned in 4.08 seconds


(Clearly, I have 'xxx'ed out the last three digits of the IP adresses)
User avatar
RU55EL
 
Posts: 336
Joined: 2014-04-07 03:42
Location: /home/russel

Re: find ip on local network with a gnu/linux tool

Postby Head_on_a_Stick » 2017-11-20 21:42

delcencen wrote:# man ifconfig and # ip r don't work.

What does "don't work" mean?

Please post the full output for my requested command.
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6810
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: find ip on local network with a gnu/linux tool

Postby GarryRicketson » 2017-11-20 22:53

Post by delcencen » 2017-11-20 15:17
# man ifconfig and # ip r don't work.

'man ifconfig' should get the manual, it is standard on any linux system.
It does not need to be run as root either. Where did you get the idea to run it as root " # " ?
Head_on_a_Stick wrote:Please post the output of
Code: Select all
ip r

Nor me,:
Code: Select all
man ifconfig
said to run these commands as root,

But maybe the OP should also include the out put of:
Code: Select all
uname -a
So we can see what version of Debian, or which
"Linux" is really being used here.
User avatar
GarryRicketson
 
Posts: 4475
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: find ip on local network with a gnu/linux tool

Postby reinob » 2017-11-21 18:24

RU55EL wrote:
Code: Select all
...
Nmap scan report for 192.168.2.xxx
...


(Clearly, I have 'xxx'ed out the last three digits of the IP adresses)


I hope you know that 192.168.x.y belong to the private IPv4 space so you can post whatever addresses you may have.
They are not routable/reachable from the outside (regardless of NAT or any port mappings you may have).
reinob
 
Posts: 521
Joined: 2014-06-30 11:42

Re: find ip on local network with a gnu/linux tool

Postby RU55EL » 2017-11-21 20:18

reinob wrote:
RU55EL wrote:
Code: Select all
...
Nmap scan report for 192.168.2.xxx
...


(Clearly, I have 'xxx'ed out the last three digits of the IP adresses)


I hope you know that 192.168.x.y belong to the private IPv4 space so you can post whatever addresses you may have.
They are not routable/reachable from the outside (regardless of NAT or any port mappings you may have).


Yes, I am aware of that. It just goes to show how paranoid I am! I don't even want to advertise my lan ip address
User avatar
RU55EL
 
Posts: 336
Joined: 2014-04-07 03:42
Location: /home/russel

Re: find ip on local network with a gnu/linux tool

Postby delcencen » 2017-11-22 21:14

Head_on_a_Stick wrote:
delcencen wrote:# man ifconfig and # ip r don't work.

What does "don't work" mean?

root@kali:~# man ifconfig
root@kali:~# man ifconfing -v
No manual entry for ifconfing
No manual entry for -v
root@kali:~# ip r
root@kali:~# nmap 169.254.100.100

Starting Nmap 7.60 ( https://nmap.org ) at 2017-11-22 21:34 UTC
setup_target: failed to determine route to 169.254.100.100
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.15 seconds

root@kali:~# ifconfig 169.254.100.100
169.254.100.100: error fetching interface information: Device not found

I don t want to use the nas wen my computer is connected to the internet that's why i say 'local network'
at this time i use kali because i can't install nmap on debian with ease.
delcencen
 
Posts: 7
Joined: 2017-11-19 18:46

Re: find ip on local network with a gnu/linux tool

Postby 4D696B65 » 2017-11-22 21:24

delcencen wrote:root@kali:~#

:shock:
User avatar
4D696B65
 
Posts: 2047
Joined: 2009-06-28 06:09

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable