Ubuntu 查看哪些设备链接wifi[How To] Find What Devices Are Connected to Network In Ubuntu

Wireless Network are the most easy as well as desirable target for wannabe hackers. Ever wondered that someone might be leeching of your hard paid wifi network? You may opt out for an expensive way to keep the hackers away by buying hacker-proof wallpapers for your home but that really is far fetched. An easy and free way is to scan your network for the device connected with it. This way you can find out if some unknown or unwanted device is connected to it.

We will use terminal for finding out what devices are connected to your network in Linux. The process is very simple and easy to use even for beginners. Here we go:

 

Get nmap:

nmap is one of the most popular network scanning tool in Linux. Use the following command to install nmap in Ubuntu:

sudo apt-get install nmap

 

Get IP range of the network:

Now we need to know the IP address range of the network. Use the ifconfig command to find it out. Look for wlan0 if you are using wifi or eth0 if you are using Ethernet.

user@user-notebook:~$ ifconfig

wlan0 Link encap:Ethernet HWaddr 70:f1:a1:c2:f2:e9
inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::73f1:a1ef:fec2:f2e8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2135051 errors:0 dropped:0 overruns:0 frame:0
TX packets:2013773 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1434994913 (1.4 GB) TX bytes:636207445 (636.2 MB)

The important things are highlighted in bold. As you see my IP is 192.168.1.91 and the subnet mask is 255.255.255.0 which means that the ip address range on my network varies from 192.168.1.0 to 192.168.1.255.

 

Scan the network:

It is advisable to use root privileges while scanning the network for more accurate information. Use the nmap command in following way:

user@user-notebook:~$ sudo nmap -sP 192.168.1.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2012-09-01 21:59 CEST

Nmap scan report for neufbox (192.168.1.1)
Host is up (0.012s latency).
MAC Address: E0:A1:D5:72:5A:5C (Unknown)
Nmap scan report for takshak-bambi (192.168.1.91)
Host is up.
Nmap scan report for android-95b23f67te05e1c8 (192.168.1.93)
Host is up (0.36s latency).

As you can see there three devices connected to my network. The router itself, my laptop and my Galaxy S2. What is connected to your network?

 

from:http://itsfoss.com/how-to-find-what-devices-are-connected-to-network-in-ubuntu/

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值