The loopback IP range starts at 127.0.0.0 and reaches to 127.255.255.255. The IP stack automatically short-circuits any packets that are sent to a loopback IP, and never puts them onto a real network. Instead, the packets get routed to the localhost, the network interface that the packets were sent from.

The loopback IP exists independently of any of the interfaces contactable IP addresses, and is always available, even if the interface is down (this is due to the fact that the packets sent to a loopback IP are intercepted in the software TCP/IP stack, and never makes it to the hardware interface).
This is just configured like any other route in your routing table. In the same manner that you add a route for whatever network you're on when you configure a new interface, you do the same for the loopback interface. This is by no means an automatic function of the TCP/IP stack, although many systems will be configured by a third party to do it for you.

Example, windows NT:

C:\> route print
<Irrelevant bits skipped>
Network Destination       Netmask        Gateway     Interface     Metric
          127.0.0.0     255.0.0.0     127.0.0.1      127.0.0.1          1

In human readable form, this translates as "route all packets destined for 127.* via the interface configured with the IP address 127.0.0.1"

Log in or register to write something here or to contact authors.