Skip to content

Loopback

Loopback interfaces are virtual logical interfaces that provide a stable, always-up reference point for network services including routing protocol router IDs, management access, and service endpoints that remain accessible regardless of physical interface states. They support full Layer 3 functionality including IPv4 and IPv6 addressing, routing protocol participation (OSPF, BGP), MPLS services, and advanced features such as BFD for fast failure detection and network monitoring applications. Loopback interfaces are essential for network design best practices, providing consistent reachability for critical services, enabling effective network troubleshooting, and serving as anchor points for overlay networks, VPN services, and network management systems.

Diagram

Diagram

Classes

interfaces (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
loopbacksList[loopbacks]No

loopbacks (iosxe.devices.configuration.interfaces)

NameTypeConstraintMandatoryDefault Value
idIntegerYes
interface_groupsListStringNo
descriptionStringNo
shutdownBooleantrue, falseNo
vrf_forwardingStringNo
ipv4Class[ipv4]No
ipv6Class[ipv6]No
arp_timeoutIntegermin: 0, max: 2147483No
load_intervalIntegermin: 30, max: 600No
mplsClass[mpls]No
ospfClass[ospf]No
ospfv3Class[ospfv3]No
pimClass[pim]No

ipv4 (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
addressIPNo
address_maskIPNo
proxy_arpBooleantrue, falseNo
access_group_inStringNo
access_group_outStringNo
redirectsBooleantrue, falseNo
unreachablesBooleantrue, falseNo
unnumberedStringNo

ipv6 (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
enableBooleantrue, falseNo
addressesList[addresses]No
link_local_addressesListIPNo
address_autoconfig_defaultBooleantrue, falseNo
address_dhcpBooleantrue, falseNo
mtuIntegermin: 1280, max: 9976No

mpls (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
ipBooleantrue, falseNo
mtuIntegerNo

ospf (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
costIntegermin: 1, max: 65535No
dead_intervalIntegermin: 1, max: 65535No
hello_intervalIntegermin: 1, max: 65535No
mtu_ignoreBooleantrue, falseNo
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
priorityIntegermin: 0, max: 255No
ttl_security_hopsIntegermin: 1, max: 254No
process_idsList[process_ids]No
message_digest_keysList[message_digest_keys]No

ospfv3 (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
network_typeChoicebroadcast, non-broadcast, point-to-multipoint, point-to-pointNo
costIntegermin: 1, max: 65535No

pim (iosxe.devices.configuration.interfaces.loopbacks)

NameTypeConstraintMandatoryDefault Value
passiveBooleantrue, falseNo
dense_modeBooleantrue, falseNo
sparse_modeBooleantrue, falseNo
sparse_dense_modeBooleantrue, falseNo
bfdBooleantrue, falseNo
borderBooleantrue, falseNo
bsr_borderBooleantrue, falseNo
dr_priorityIntegermin: 0, max: 4294967294No

addresses (iosxe.devices.configuration.interfaces.loopbacks.ipv6)

NameTypeConstraintMandatoryDefault Value
prefixIPYes
eui_64Booleantrue, falseNo

process_ids (iosxe.devices.configuration.interfaces.loopbacks.ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65535No
areasListStringNo

message_digest_keys (iosxe.devices.configuration.interfaces.loopbacks.ospf)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 255Yes
md5_auth_keyStringNo
md5_auth_typeChoice0, 7No

Examples

iosxe:
devices:
- name: Device1
configuration:
interfaces:
loopbacks:
- id: 0
description: Loopback0
ip_address: 5.5.5.5
ip_address_mask: 255.255.255.0

Full example:

iosxe:
devices:
- name: Device1
configuration:
interfaces:
loopbacks:
- id: 1
description: Production Loopback 2
shutdown: false
vrf_forwarding: prod
arp_timeout: 30
load_interval: 30
ipv4:
address: 192.168.2.1
address_mask: 255.255.255.0
proxy_arp: true
access_group_in: ACL_IN
access_group_out: ACL_OUT
redirects: false
unreachables: false
ipv6:
enable: true
addresses:
- prefix: 2001::1
prefix_length: 64
link_local_addresses:
- fe80::1
mtu: 1450
bfd:
enable: true
local_address: 172.16.1.1
interval: 120
interval_multiplier: 3
interval_min_rx: 100
echo: false
mpls:
mtu: 1450
ip: true
ospf:
cost: 50
dead_interval: 3
hello_interval: 1
mtu_ignore: true
network_type: point-to-multipoint
priority: 1
ttl_security_hops: 2
process_ids:
- id: 1
areas:
- "0.0.0.0"
ospfv3:
network_type: point-to-point
cost: 50
pim:
dense_mode: true
bfd: true
border: true
bsr_border: true
dr_priority: 100