efa mgmt subinterface staticip add

Set static IP addresses for a subinterface.

Syntax

For IPv4 Stack

efa mgmt subinterface staticip add [ --subinterface sub | --ip1 ipv4-address-1 | --ip2 ipv4-address-2 ]

For IPv6 Stack

efa mgmt subinterface staticip add [ --subinterface sub | --ip1 ipv6-address-1 | --ip2 ipv6-address-2 ]

For Dual Stack

efa mgmt subinterface staticip add [ --subinterface sub | --ip1 ipv4-address-1 | --ip2 ipv4-address-2 | --ip3 ipv6-address-1 | --ip4 ipv6-address-2 ]

Parameters

--subinterface sub
Name of the sub-interface for which you want to set static IP addresses.
--ip1 ipv4-address-1
Required. First static IPv4 address. Example: 192.168.10.1/32.
--ip2 ipv4-address-2
Optional second static IPv4 address. Example: 192.168.10.2/32.
--ip3 ipv6-address-1
Optional first static IPv6 address. Example: 2000::1/64
--ip4 ipv6-address-2
Optional second static IPv6 address. Example: 2000::2/64

Usage Guidelines

You can assign a maximum of one pair of static IP addresses. Only one subinterface at a time can have static IP addresses. To assign static IPv4/IPv6 address, subinterface must already have IPv4/IPv6 address configured.

Examples

efa mgmt subinterface staticip add –subinterface sub1 
--ip1 10.10.10.1/24 --ip2 10.10.10.2/24 
efa mgmt subinterface staticip add –subinterface sub2 
--ip1 2000::1/64 --ip2 2000::2/64 
efa mgmt subinterface staticip add –subinterface sub3 
--ip1 10.10.10.1/24 --ip2 10.10.10.2/24 –ip3 2000::1/64 --ip4 2000::2/64