For the complete documentation index, see llms.txt. This page is also available as Markdown.

update

Update a NIC

Usage

ionosctl compute nic update [flags]

Aliases

For nic command:

[n]

For update command:

[u up]

Description

Use this command to update the configuration of an existing NIC, identified within its Data Center (--datacenter-id) and Server (--server-id) by --nic-id. Only the flags you set are changed; everything else is left as-is.

Common updates:

  • Move the NIC to a different network by changing --lan-id.

  • Add reserved public IPs or assign private IPs (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) with --ips.

  • Toggle DHCP with --dhcp.

  • Enable/disable the per-NIC firewall with --firewall-active and set its direction with --firewall-type (INGRESS/EGRESS/BIDIRECTIONAL). When enabled, incoming traffic is filtered by the NIC's firewall rules; when disabled, all traffic reaches the NIC directly and the rules are ignored.

Restriction: the primary address of a NIC connected to a Load Balancer can only be changed by changing the IP of the Load Balancer.

Use --wait (-w) to wait for the NIC to reach AVAILABLE state before the command returns.

Required values to run command:

  • Data Center Id

  • NIC Id

Options

Examples

Last updated