interface loopback

Configures a loopback interface.

Syntax

interface loopback port_number
no interface loopback port_number

Command Default

A loopback interface is not configured.

Parameters

port_number
Specifies the port number for the loopback interface. Range is 1 through 255.

Modes

Global configuration mode

Usage Guidelines

A loopback is a logical interface traditionally used to ensure stable routing operations.

Use the no form of this command to remove the specified loopback interface.

The following restrictions apply when the loopback interface is part of an active VXLAN overlay gateway. These restrictions are enforced to maintain consistency across the gateway.

You must first use the no activate command in VXLAN overlay gateway configuration mode to modify the loopback interfaces. .

Use the no form of this command with a port parameter to remove the specified loopback interface.

Examples

The following example creates a loopback interface with a port number of 25.

device# configure terminal
device(config)# interface loopback 25
device(config-Loopback-25)#