IP addresses can be assigned to a loopback interface, using Classless Interdomain Routing (CIDR) network masks. Loopback interfaces add stability to a network, because they do not incur route flap problems due to unstable links between devices.
device# configure terminal
device(config)# interface loopback 1
Note
You can define only one IP address per loopback. The only valid mask value is /32.device(config-Loopback-1)# ip address 1.1.1.1/32
device(config-Loopback-1)# no shutdown
device(config-Loopback-1)# do show ip interface loopback 1 Loopback 1 is up protocol is up Primary Internet Address is 1.1.1.1/32 IP MTU is 1500 Proxy Arp is not Enabled ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabled Vrf : default-vrf