Update the network interfaces for an instance

Every Compute Engine instance has anic0 virtual network interface (vNIC)connected to a subnet in a VPC network. Depending on theinstance's machine type, you can define additional vNICs only when you create ainstance.

With Dynamic Network Interfaces,you can create VLAN-based subinterfaces for each vNIC, which letsyou scale the number of network interfaces and VPCnetwork connections.

You can add or remove Dynamic NICs without having to restart orrecreate the instance. For more information, see the followingpages in the Virtual Private Cloud (VPC) documentation:

This page describes how to update the properties of the network interface of aninstance.

Before you begin

Update a network interface of an instance

To update the properties of a network interface, see the procedurethat corresponds to the property that you want to update, such as one ofthe following.

If you are updating a Dynamic NIC by using thegcloud CLI or the API, ensure that you specify theDynamic NIC according tothenaming format of Dynamic NICs.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.