OcNOS-SP : System Management Guide : System Management Command Reference : Interface Commands : ip address A.B.C.D/M
ip address A.B.C.D/M
Use this command to specify that an IP address and prefix length will be used by this interface. If the secondary parameter is not specified, this command overwrites the primary IP address. If the secondary parameter is specified, this command adds a new IP address to the interface. The secondary address cannot be configured in the absence of a primary IP address. The primary address cannot be removed when a secondary address is present.
Use the no parameter with this command to remove the IP address from an interface.
Command Syntax
ip address A.B.C.D/M label LINE
ip address A.B.C.D/M (secondary|)
ip address A.B.C.D/M secondary label LINE
no ip address A.B.C.D/M label LINE
no ip address A.B.C.D/M secondary label LINE
no ip address (A.B.C.D/M (secondary|)|)
Parameters
LINE
Label of this address.
secondary
Make the IP address secondary.
Default
No default value is specified
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#interface eth3
(config-if)#ip address 10.10.10.50/24
(config-if)#ip address 10.10.11.50/24 secondary
Last modified date: 10/19/2023