ping 127.0.0.2 can receives response.
$ ping 127.0.0.2
PING 127.0.0.2 (127.0.0.2) 56(84) bytes of data.
64 bytes from 127.0.0.2: icmp_seq=1 ttl=64 time=0.068 ms
64 bytes from 127.0.0.2: icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from 127.0.0.2: icmp_seq=3 ttl=64 time=0.062 ms
^C
--- 127.0.0.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2026ms
rtt min/avg/max/mdev = 0.060/0.063/0.068/0.007 ms
But ifconfig doesn't show any network interface with 127.0.0.2. Is there a virtual network interface exist for 127.0.0.2?
Are loopback addresses the only IP addresses which don't need to be assigned to a network interface or something else?
Why is 127.0.0.1 still assigned to a virtual network interface lo, according to ifconfig, if it doesn't need to be in order to work?
I am not sure what Stephen reply Why is some virtual network interface assigned private IP address, while some is assigned loopback IP address? means:
lo gets an IP address assigned to it so that packets sent from it have a source IP address.
Can a packet be sent from a IP address which is not yet assigned to any (virtual) network interface? When I ping 127.0.0.2 I can get a response packet sent from it, even though it is not assigned to any (virtual) network interface.