Essentially, these are local applications which have to communicate with each other but they don’t need to send traffic outside or need rout-able traffic. Using the loopback interface bypasses any local network interface hardware. So, loopback interface/ip is used to access the network services that are running on the host via the loopback network interface. But still it is unclear what is its purpose in localhost system. ![]() Ok, so there is a loopback interface with its reserve ip and user can ping that ip or mapped domain name. ::1 localhost localhost.localdomain localhost6 ~]# So, why i am able to ping my localhost? Answer is, static local dns infrared]$ ping localhostĦ4 bytes from (127.0.0.1): icmp_seq=1 ttl=64 time=0.101 msĦ4 bytes from (127.0.0.1): icmp_seq=2 ttl=64 time=0.088 msĢ packets transmitted, 2 received, 0% packet loss, time 1000ms There is reserved ipv6 address for loopback and lets ping that as ~]# ping6 ::1Ħ4 bytes from ::1: icmp_seq=1 ttl=64 time=0.029 msĦ4 bytes from ::1: icmp_seq=2 ttl=64 time=0.014 msĦ4 bytes from ::1: icmp_seq=3 ttl=64 time=0.028 msģ packets transmitted, 3 received, 0% packet loss, time 2038ms ping statistics -Ģ packets transmitted, 2 received, 0% packet loss, time 1018ms Let me ping my hostname as infrared]$ infrared]$ ping IANA has reserved 127.0.0.0/8 ip address range for loopback interfaces in the localhost. Today, thought of a blog came in my mind where I shall explain more about loopback interfaces and try to find why and how it exist in the networking space. ![]() Long time ago, around the beginning of my career, Once I was asked about loopback interface in an interview.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |