Basic Operation Guide 2014/02

Example 80 A loopback interface configuration
HP Switch(config)# interface loopback 1
HP Switch(config)# ip address 10.1.1.1
NOTE:
You can configure a loopback interface only from the CLI; you cannot configure a loopback
interface from the WebAgent or Menu interface.
Loopback interfaces share the same IP address space with VLAN configurations. The maximum
number of IP addresses supported on a switch is 2048, which includes all IP addresses
configured for both VLANs and loopback interfaces (except for the default loopback IP address
127.0.0.1).
Each IP address that you configure on a loopback interface must be unique in the switch. This
means that the address cannot be used by a VLAN interface or another loopback interface.
For example, if you configure a VLAN with IP address 172.16.100.8/24, you cannot configure
a loopback interface with IP address 172.16.100.8. In the same way, if you configure a
loopback interface (lo1) with IP address 172.16.101.8, you cannot configure another
loopback interface (lo2) with IP address 172.16.101.8.
You can configure multiple IP addresses on a loopback interface (lo0 to lo7). Up to thirty-two
IP addresses are supported on a loopback interface. The following example shows valid IP
address configurations on two loopback interfaces.
Example 81 Two loopback interfaces
HP Switch(config)# interface loopback 0
HP Switch(lo0)# ip address 172.16.101.8
HP Switch(lo0)# ip address 172.16.101.9
HP Switch(lo0)# exit
HP Switch(config)# interface loopback 1
HP Switch(lol)# ip address 172.16.102.1
HP Switch(lol)# ip address 172.16.102.2
Displaying loopback interface configurations
To display the list of loopback interfaces which have been assigned IP addresses, enter the show
ip command.
In the show ip command output, information about configured loopback interfaces is displayed
below other IP configuration parameters, such as packet TTL and ARP age-out values, and VLAN
IP configurations. The following example displays the IP addresses configured for two user-defined
loopback interfaces (lo1) and (lo2).
Loopback interfaces 113