Specifications

ip address
258
ip address
Sets the local IPv4 address.
Syntax
To set or change information:
ip address <IP address> <Subnet-Mask>
To delete information:
no ip address <IP address>
Input mode
(config-if)
Parameters
<IP address>
Sets the local IPv4 address.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
1.0.0.0 to 126.255.255.255, 128.0.0.0 to 223.255.255.255
<Subnet-Mask>
Sets the subnet mask.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
Subnet mask: 128.0.0.0 to 255.255.255.252 (bits must be contiguous)
Default behavior
None
Impact on communication
If an interface that is up is changed by using this command, it first goes down and then
comes up again.
Accordingly, the following might occur:
If communication is in progress on the applicable interface, it stops.
Dynamic ARP entries generated for the applicable interface are deleted.
When the change is applied
The change is applied immediately after setting values are changed.
Notes
1. 127.*.*.* cannot be set as an IPv4 address.
Related commands
interface vlan