Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

find ip on local network with a gnu/linux tool

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
delcencen
Posts: 9
Joined: 2017-11-19 18:46

find ip on local network with a gnu/linux tool

#1 Post by delcencen »

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.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

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

#2 Post by Segfault »

Why don't you use static IP address for your NAS?

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#3 Post by delcencen »

the default ip is the same i find with the program in windows,but i can't find it with linux.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#4 Post by GarryRicketson »

I wonder if the OP is even using Debian, ? " Linux" could be any of the 100s
of linux distros, :?:

find ip on local network with a gnu/linux tool

http://tldp.org/LDP/GNU-Linux-Tools-Sum ... /c8319.htm

https://www.cyberciti.biz/faq/bash-shel ... p-address/

Code: Select all

man ifconfig
Last edited by GarryRicketson on 2017-11-19 20:22, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#5 Post by Head_on_a_Stick »

Please post the output of

Code: Select all

ip r
deadbang

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#6 Post by delcencen »

[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: 9
Joined: 2017-11-19 18:46

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

#7 Post by delcencen »

it's a qnap 219p

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#8 Post by delcencen »

# man ifconfig and # ip r don't work.

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

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

#9 Post by RU55EL »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#10 Post by Head_on_a_Stick »

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.
deadbang

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#11 Post by GarryRicketson »

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.

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

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

#12 Post by reinob »

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).

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

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

#13 Post by RU55EL »

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

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#14 Post by delcencen »

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.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

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

#15 Post by 4D696B65 »

delcencen wrote: root@kali:~#
:shock:

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#16 Post by delcencen »

with a debian :
root@localhost:/home/user# man ifconfig
No manual entry for ifconfig
root@localhost:/home/user# ip r
root@localhost:/home/user#

the nas work perfectly with windows at 169.254.100.100 !

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#17 Post by GarryRicketson »

the nas work perfectly with windows at 169.254.100.100 !
Yes, but this is Debian, not windows, or is it Kali,? .... what OS are you really
using ?

The OP needs to look at the specifics for "kali", especially on configureing the net works. Kali is not Debian, but that does explain why :
root@kali:~# man ifconfig
root@kali:~# man ifconfing -v
Apparently it is not just Kali, but also the newer Debian versions, in fact they blame Debian, but any way, you need to install : "net-tools"
https://forums.kali.org/showthread.php? ... t-found!!!
sudo apt install net-tools
should solve the problem,
This would be better to ask about on the kali forums.
Also:
https://docs.kali.org/introduction/shou ... kali-linux

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

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

#18 Post by Segfault »

the nas work perfectly with windows at 169.254.100.100
^^ This, ladies and germs, is BS. Windows or Kali, networking standards are the same and this is not a valid private IP address, nor is it a valid public address. It is an IP address assigned by DHCP client when network is screwed up (local link address). IMHO this is another wannabe hacker who has no business running Kali, these are networking basics we are talking here.

User avatar
Ardouos
Posts: 1075
Joined: 2013-11-03 00:30
Location: Elicoor II
Has thanked: 1 time
Been thanked: 4 times

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

#19 Post by Ardouos »

delcencen wrote: 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
Kali is not Debian, it is a distro for professional pen testing on a live medium. For assistance with Kali please use the Kali forums.
There is only one Debian | Do not break Debian | Stability and Debian | Backports

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

delcencen
Posts: 9
Joined: 2017-11-19 18:46

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

#20 Post by delcencen »

my nas is not compatible with linux

Post Reply