Loopback Interface Commands

Use these commands to create, delete, and manage loopback interfaces.

The commands in this section describe how to create, delete, and manage loopback interfaces. A loopback interface is always expected to be up. This interface can provide the source address for sent packets and can receive both local and remote packets. The loopback interface is typically used by routing protocols.

To assign an IP address to the loopback interface, see ip address. To assign an IPv6 address to the loopback interface, see ipv6 address.

interface loopback

M4250

M4350

Use this command to enter the Interface Config mode for a loopback interface. The range of the loopback ID is from 0 to 63.

Format interface loopback loopback-id
Mode Global Config

no interface loopback

This command removes the loopback interface and associated configuration parameters for the specified loopback interface.

Format no interface loopback loopback-id
Mode Global Config

show interface loopback

M4250

M4350

This command displays information about configured loopback interfaces.

Format show interface loopback [loopback-id]
Mode Privileged EXEC

If you do not specify a loopback ID, the following information appears for each loopback interface on the system.

Term Definition
Loopback ID The loopback ID associated with the rest of the information in the row.
Interface The interface name.
IP Address The IPv4 address of the interface.

If you specify a loopback ID, the following information appears.

Term Definition
Interface Link Status Shows whether the link is up or down.
IP Address The IPv4 address of the interface.
MTU size The maximum transmission size for packets on this interface, in bytes.