Loopbacks are essentially internal virtual interfaces. Loopback interfaces are not bound to a physical port and are used for device management and routing protocols.
switch(config)# interface loopback LOOPBACK
switch(config-loopback-if)# ip address IP-ADDR/<SUBNET|PREFIX>
switch(config)# interface loopback 1
switch(config-loopback-if)# ip address 99.99.99.1/32
switch(config-loopback-if)# end
show run interface loopback1
interface loopback1
no shutdown
ip address 99.99.99.1/32
exit
show ip interface loopback1
Interface loopback1 is up
Admin state is up
Hardware: Loopback
IPv4 address 99.99.99.1/32
show
commands.