Use this command to
configure the IP options for the current interface.
Privilege:
Security Administrator,
Administrator
Mode:
Exec > Global Configuration
> Context Configuration > Loopback Interface Configuration
configure > context context_name > interface interface_name loopback
Entering the above
command sequence results in the following prompt:
[context_name]host_name(config-if-loopback)#
Syntax
ip address { ip_address ip_mask | ip_address/bitmask } [ secondary | srp-activate ]
no ip address ip_address
ip ranged-address { ip_address
ip_mask | ip_address/bitmask}
no ip ranged-address
no
Deletes the IP address
or range of IP address you specify from the interface configuration.
address {ip_address
ip_mask | ip_address/bitmask} [ secondary | srp-activate ]
Configures the IP address
and network mask for the interface.
Enter an ip_address
ip_mask to specify an IP address and the subnet
mask pair that identifies the IP address of the interface. ip_address is
entered in IPv4 dotted-decimal or IPv6 colon-separated-hexadecimal
notation. Currently, the only value accepted for ip_mask is
255.255.255.255 (IPv4) or 120 (IPv6) .
For the network mask, ip_address/net_mask,
enter the IP address and the length in bits of the network mask,
For example, 192.168.1.0/32 (IPv4) or fe80::c0a8:100/32
(IPV6). Currently, the only value accepted for bit_mask
is 32.
Use the secondary keyword
ito configure a secondary IP address on the interface. This is referred
to as multi-homing of the interface.
Use the srp-activate keyword
to activate the IP address for Interchassis Session Recovery (ICSR).
range-address ip_address
ip_mask | ip_address/bitmask
Configures the range
or group of IP address for the loopback interface. This support
is provided to enable the support of multiple Enterprise HA in one
HA service.
ip_address specifies
the IP address for the loopback interface and must be specified
in IPv4 dotted-decimal notation.
ip_mask specifies
the number of subnet bits, representing the subnet mask in CIDR
notation and must be a value between 1 to 32 and bitmask specifies
the subnet mask in IPv4 dotted-decimal notations.
IMPORTANT:
This interface configuration
is allowed only for IPv4 addresses and MUST be bound to the HA Service.
Usage:
Create and manage loopback
interfaces for the current context.
IP range support is
provided through range-address keyword.
This keyword is added to provide Enterprise HA support on HA service
to connect enhanced number of enterprise nodes. Refer HA Administration Guide for
more information.
This IP address range
configuration must meet the following criteria:
- The ranged address
MUST be a primary address.
- The ranged-address
MUST be unique across the interface configuration.
- The ranged-address
MUST be unique across the Context.
- The address specified
in the ranged address MUST NOT be part of any other interface.
- The ranged-address
can be a SRP-activated address and the behavior is the same as with
any SRP-activated address.
Example:
The following command
configures IP address to associate with the interface:
ip address 1.2.3.4 255.255.255.255
The following command
removes the associated IP address for the interface:
no ip address 10.2.3.4
The
following command configures the range of IP addresses for over
this interface to be used with HA service configuration for Enterprise
HA support:
ip range-address 10.2.3.0/24