Loopback interfaces are virtual logical interfaces on NX-OS 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 with secondary addresses, VRF membership, link logging, and routing protocol participation through OSPF, OSPFv3, PIM, and IS-IS sub-sections. Loopback interfaces also support DHCP relay, IPv6 neighbor discovery configuration, access group filtering, and are essential for VXLAN VTEP source interfaces, BGP peering, and overlay network anchor points.
Name Type Constraint Mandatory Default Value loopbacks List [loopbacks]No
Name Type Constraint Mandatory Default Value id Integer min: 0 Yes interface_groups List String No shutdown Boolean true, falseNo falsedescription String No logging_event_port_link_status Boolean true, falseNo vrf String No ip_address IP No ip_secondary_addresses List IP No ip_redirects Boolean true, falseNo ip_unreachables Boolean true, falseNo ip_port_unreachable Boolean true, falseNo ospf Class [ospf]No ospfv3 Class [ospfv3]No pim Class [pim]No isis Class [isis]No ipv6_address_autoconfig Boolean true, falseNo ipv6_nd_default_route Boolean true, falseNo ipv6_forward Boolean true, falseNo ipv6_link_local_use_bia Boolean true, falseNo ipv6_address_use_link_local_only Boolean true, falseNo ipv6_verify_unicast_source_reachable_via Choice disabled, strict, loose, loose-allow-default, strict-allow-vni-hostsNo ipv6_address_link_local String No ipv6_addresses List [ipv6_addresses]No ip_dhcp_relay Class [ip_dhcp_relay]No ipv6_dhcp_smart_relay Boolean true, falseNo ipv6_dhcp_relay_addresses List [ipv6_dhcp_relay_addresses]No nd Class [nd]No ip_access_group_in String No ip_access_group_out String No
Name Type Constraint Mandatory Default Value process String Yes advertise_secondaries Boolean true, falseNo trueadvertise_subnet Boolean true, falseNo area String No bfd Boolean true, falseNo cost Integer min: 0, max: 65535 No dead_interval Integer min: 0, max: 65535 No hello_interval Integer min: 0, max: 65535 No mtu_ignore Boolean true, falseNo network Choice unspecified, p2p, bcastNo prefix_attribute_n_flag Choice unspecified, clearNo passive_interface Boolean true, falseNo priority Integer min: 0, max: 255 No retransmit_interval Integer min: 1, max: 65535 No transmit_delay Integer min: 1, max: 450 No authentication_key String No message_digest_key_id Integer min: 0, max: 255 No authentication_key_secure_mode Boolean true, falseNo authentication_key_chain String No message_digest_key String No message_digest_key_secure_mode Boolean true, falseNo authentication Choice unspecified, simple, md5, noneNo
Name Type Constraint Mandatory Default Value process String Yes advertise_secondaries Boolean true, falseNo area String No bfd Boolean true, falseNo cost Integer min: 0, max: 65535 No dead_interval Integer min: 0, max: 65535 No hello_interval Integer min: 1, max: 65535 No network Choice none, p2p, bcastNo passive_interface Boolean true, falseNo priority Integer min: 0, max: 255 No instance_id Integer min: 0, max: 255 No mtu_ignore Boolean true, falseNo retransmit_interval Integer min: 1, max: 65535 No transmit_delay Integer min: 1, max: 450 No
Name Type Constraint Mandatory Default Value bfd_instance Boolean true, falseNo dr_priority Integer min: 1, max: 4294967295 No passive Boolean true, falseNo sparse_mode Boolean true, falseNo border Boolean true, falseNo dr_delay Integer min: 1, max: 65535 No jp_policy String No neighbor_policy_route_map String No neighbor_policy_prefix_list String No strict_rfc_compliant Boolean true, falseNo
Name Type Constraint Mandatory Default Value instance_name String Yes circuit_type Choice l1, l2, l12No ipv4 Boolean true, falseNo ipv6 Boolean true, falseNo network_point_to_point Choice off, on, use-all-is-macNo passive_interface Choice l1, l2, l12, no-l1, no-l2, no-l12, inherit-defNo metric_level_1 Integer min: 0, max: 16777216 No metric_level_2 Integer min: 0, max: 16777216 No ipv6_metric_level_1 Integer min: 0, max: 16777216 No ipv6_metric_level_2 Integer min: 0, max: 16777216 No priority_level_1 Integer min: 0, max: 127 No priority_level_2 Integer min: 0, max: 127 No hello_interval Integer min: 1, max: 65535 No hello_interval_level_1 Integer min: 1, max: 65535 No hello_interval_level_2 Integer min: 1, max: 65535 No hello_multiplier Integer min: 3, max: 1000 No hello_multiplier_level_1 Integer min: 3, max: 1000 No hello_multiplier_level_2 Integer min: 3, max: 1000 No hello_padding Choice always, transient, neverNo authentication_check Boolean true, falseNo authentication_check_level_1 Boolean true, falseNo authentication_check_level_2 Boolean true, falseNo authentication_key_chain String No authentication_key_chain_level_1 String No authentication_key_chain_level_2 String No authentication_type Choice clear, md5, unknownNo authentication_type_level_1 Choice clear, md5, unknownNo authentication_type_level_2 Choice clear, md5, unknownNo mtu_check Boolean true, falseNo mtu_check_level_1 Boolean true, falseNo mtu_check_level_2 Boolean true, falseNo bfd Boolean true, falseNo ipv6_bfd Boolean true, falseNo csnp_interval_level_1 Integer min: 1, max: 65535 No csnp_interval_level_2 Integer min: 1, max: 65535 No lsp_interval Integer min: 10, max: 65535 No retransmit_interval Integer min: 1, max: 65535 No retransmit_throttle_interval Integer min: 20, max: 65535 No mesh_group Integer min: 0, max: 4294967295 No mesh_group_blocked Boolean true, falseNo n_flag_clear Boolean true, falseNo suppress_prefix Boolean true, falseNo
Name Type Constraint Mandatory Default Value address String Yes type Choice primary, secondaryNo tag Integer min: 0, max: 4294967295 No eui64 Boolean true, falseNo route_preference Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value information_trusted Boolean true, falseNo smart_relay Boolean true, falseNo subnet_broadcast Boolean true, falseNo information_option Boolean true, falseNo source_subnet String No addresses List [addresses]No
Name Type Constraint Mandatory Default Value address String Yes vrf String No
Name Type Constraint Mandatory Default Value ra_boot_file_url String No suppress_ra Boolean true, falseNo suppress_ra_mtu Boolean true, falseNo managed_config_flag Boolean true, falseNo other_config_flag Boolean true, falseNo redirects Boolean true, falseNo dad_attempts Integer min: 0, max: 15 No dad_ns_interval Integer min: 1000, max: 6000 No delete_adjacency_on_mac_delete Boolean true, falseNo dns_search_list_suppress Boolean true, falseNo dns_suppress Boolean true, falseNo hop_limit Integer min: 0, max: 255 No mac_extract Choice none, nud-phase, exclude-nud-phaseNo mtu Integer min: 1280, max: 65535 No ns_interval Integer min: 1000, max: 3600000 No ra_interval Integer min: 4, max: 1800 No ra_interval_minimum Integer min: 3, max: 1350 No ra_lifetime Integer min: 0, max: 9000 No reachable_time Integer min: 0, max: 3600000 No retrans_timer Integer min: 0, max: 4294967295 No suppress_ra_route Boolean true, falseNo router_preference Choice unspecified, low, medium, highNo
Name Type Constraint Mandatory Default Value address String Yes vrf String No
Example 1: Router-ID loopback with OSPF and PIM using an interface group
ip_address : 10.1.100.3/32
interface_groups : [ LOOPBACK_INTERFACE ]
Example 2: VTEP source loopback and anycast RP loopback for a VXLAN fabric
ip_address : 10.1.100.3/32
interface_groups : [ LOOPBACK_INTERFACE ]
ip_address : 10.1.200.1/32
interface_groups : [ LOOPBACK_INTERFACE ]
ip_address : 10.1.100.1/32
interface_groups : [ LOOPBACK_INTERFACE ]
ip_address : 10.1.101.1/32
interface_groups : [ LOOPBACK_INTERFACE ]
Example 3: Loopback with inline OSPF/PIM configuration and VRF membership
description : Router-ID-Underlay
ip_address : 10.1.100.5/32
description : VRF-BLUE-Loopback
ip_address : 192.168.1.1/32
- address : 2001:db8:1::1/128