ip address
Syntax
ip address <ipv4_addr/prefix-length> [secondary]
no ip address <ipv4_addr/prefix-length> [secondary]
Description
Sets the IPv4 address for a loopback interface.
The
no
form of this command reverses the set of the IPv4 address for a loopback interface.
Command context
config
Parameters
<ipv4_addr/prefix-length>
Specifies the IPv4 address with prefix-length for the loopback interface. Format: A.B.C.D/M
secondary
Indicates that the IPv4 address is a secondary address.
Authority
Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.
Examples
switch# configure terminal switch(config)# interface loopback 1 switch(config-loopback-if)# ip address 16.93.50.2/24 switch(config-loopback-if)# ip address 20.1.1.1/24 secondary