Loopback interfaces and ports reflect or "loop back" any packets sent to them. This facilitates self-connections, and is used mainly for test purposes.
They are not required for normal use, and may cause problems in certain circumstances, so it is recommended that you don't use them unless you really need to.
A typical INTERFACE and PORT for loopback purposes is shown below:
INTERFACE=3
TYPE=LOOPBACK
PROTOCOL=KISS
MTU=576
ENDINTERFACE
PORT=3
ID=Internal Loopback
INTERFACENUM=3
ENDPORT
The PROTOCOL directive specifies the encapsulation protocol for the interface, and this dictates the protocols that can be used for self-connects as follows:
Protocol | Supported protocols
|
---|
NONE | AX25, IP, ARP, ICMP
|
ETHER | AX25, IP, ARP, ICMP
|
KISS | AX25 only. Up to 16 PORTs may be attached.
|
SLIP | IP, ICMP, ARP
|
The above self-connect protocols can in turn support many others. For example, AX25 supports NetRom and IP. IP supports TCP, UDP, AXIP and so on.
The use of any other PROTOCOL directive causes the interface to default to KISS mode.
|