Enable IPv6 scan with nmap -6 ::1
In this step, we will perform a basic IPv6 scan using nmap
. nmap
is a powerful network scanning tool used to discover hosts and services on a computer network by sending packets and analyzing the responses. The -6
option tells nmap
to perform an IPv6 scan. ::1
is the IPv6 loopback address, equivalent to 127.0.0.1
in IPv4. It refers to your own machine.
Before we begin, it's helpful to understand the IPv6 address ::1
. In IPv6, addresses are 128 bits long, usually written as eight groups of four hexadecimal digits, separated by colons. The ::
notation is used to represent a sequence of one or more groups of zeroed-out hexadecimal digits. So, ::1
is shorthand for 0000:0000:0000:0000:0000:0000:0000:0001
.
Now, let's execute the scan.
-
Open your Xfce terminal.
-
Execute the following command:
sudo nmap -6 ::1
This command tells nmap
to scan the IPv6 loopback address (::1
). You'll need sudo
because nmap
often requires elevated privileges to send raw packets.
The output will look similar to this:
Starting Nmap 7.80 ( https://nmap.org )
Nmap scan report for ip6-localhost (::1)
Host is up (0.000073s latency).
Other addresses for ip6-localhost (not scanned): fe80::1%lo
Service detection performed. Please report any incorrect results.
Nmap done: 1 IP address (1 host up) scanned in 1.12 seconds
This output indicates that the host at ::1
is up and running. It also shows other addresses associated with ip6-localhost
. The scan was completed successfully.