How to get ip address of all the connected device on the network on linux using cli #nmap #network #connecteddevices #linuxcommands #kalilinux #linux #linuxserver
#nmap #network #connecteddevices #linuxcommands #kalilinux #linux #linuxserver To get all the IP addresses available on a network in Linux (Kali), you can use the following methods: **Method 1: Using `nmap`** You can use `nmap` to scan the network and list all the IP addresses. Here's an example: ```bash nmap -sP 192.168.1.0/24 ``` Replace `192.168.1.0/24` with the IP address range of your network. **Explanation:** * `-sP` option tells `nmap` to perform a ping scan, which sends an ICMP echo request packet to each IP address in the specified range. * `192.168.1.0/24` is the IP address range in CIDR notation, where `192.168.1.0` is the network address and `24` is the subnet mask. **Method 2: Using `arp-scan`** You can use `arp-scan` to scan the network and list all the IP addresses. Here's an example: ```bash arp-scan -q 192.168.1.0/24 ``` Replace `192.168.1.0/24` with the IP address range of your network. **Explanation:** * `-q` option tells `arp-scan` to suppress the header