Configure Static IP Addresses for Management Sub Interfaces

You can use the XCO CLI to add, delete, and show the static IP addresses for management sub interfaces.

About this task

Follow this procedure to configure static IP address for management sub interface.

Procedure

  1. To add static IP addresses to a specified sub interface, run the following command:
    • For IPv4 IP-stack type
      efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv4-address> |--ip2 <ipv4-address> ]

      Here the syntax shows that ip1 and ip2 will accept only with IPv4 address.

      Note

      Note

      The Mix mode configuration with ip1 as IPv4 address and ip2 as IPv6 address or vice versa is not supported.
      efa mgmt subinterface staticip add –subinterface sub1 --ip1 10.10.10.1/24 –ip2 10.10.10.2/24
    • For IPv6 IP-stack type
      efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv6-address> |--ip2 <ipv6-address> ]

      Here the syntax shows that ip1 and ip2 will accept only with IPv6 address.

      Note

      Note

      The Mix mode configuration with ip1 as IPv4 address and ip2 as IPv6 address or vice versa is not supported.
      efa mgmt subinterface staticip add –subinterface sub1 --ip1 2003::165/64 –ip2 2003::166/64
    • For Dual IP-stack type
      efa mgmt subinterface staticip add [ --subinterface sub | --ip1 <ipv4-address-1> | --ip2 <ipv4-address-2> ] --ip3 <ipv6-address-1> | --ip4 <ipv6-address-2>]

      Here the syntax shows that ip1 and ip2 addresses will be available only to IPv4 addresses, and that ip3 and ip4 addresses will be available only to IPv6 addresses.

      To set up an optional static IPv6 address, ensure that the sub-interface to which it is assigned already has an IPv6 address configured. All other assumptions and validations remain consistent with those used for static IPv4 addresses in the IPv4 stack.

      efa mgmt subinterface staticip add –subinterface sub1 --ip1 10.10.10.1/24 --ip2
      10.10.10.2/24 –ip3 2000::1/64 --ip4 2000::2/64
  2. To remove static IP addresses from a specified sub interface, run the following command:
    efa mgmt subinterface staticip remove 
    --subinterface <int-id>
  3. To show all sub interfaces and the IP addresses that are attached to them, run the following command:
    efa mgmt subinterface staticip show