![]() ![]() There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question. The same is true for dummy, and the same is true for lo.īut if you haven't observed this, you can use the less advanced explanation. It is possible to verify this with tcpdump or the packet counters in ip -s link. When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. (You can play with ip link add type dummy). But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.Ī more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. A for loop is classified as an iteration statement. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. In computer science a for loop is a programming language statement which allows code to be repeatedly executed. In reality the implementation details are not the same. You can think of lo like a veth pair, except there is only one end. They are designed to communicate with containers: one end of the veth pair can be moved into a container. But in the two examples, I don't see that meaning happening, but just the same thing as non-loop back IP addresses.Ī veth pair is a pair of ethernet devices with a cable between them. "loopback" is supposed to mean "a message or signal ends up (or loops) back to where it started" ( ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |