public sealed class NetworkInterface : IMessage<NetworkInterface>, IEquatable<NetworkInterface>, IDeepCloneable<NetworkInterface>, IBufferMessage, IMessage
Reference documentation and code samples for the VM Migration v1 API class NetworkInterface.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class within the Google Cloud VM Migration v1 API represents a network interface card (NIC) of a virtual machine (VM).\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.VMMigration.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.VMMigration.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for configuring the NIC such as \u003ccode\u003eExternalIp\u003c/code\u003e, \u003ccode\u003eInternalIp\u003c/code\u003e, \u003ccode\u003eNetwork\u003c/code\u003e, and \u003ccode\u003eSubnetwork\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eNetworkInterface\u003c/code\u003e is 2.6.0, with previous versions from 2.5.0 to 1.0.0 available.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage and inherits members from the base object class.\u003c/p\u003e\n"]]],[],null,["# VM Migration v1 API - Class NetworkInterface (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.NetworkInterface)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.NetworkInterface) \n\n public sealed class NetworkInterface : IMessage\u003cNetworkInterface\u003e, IEquatable\u003cNetworkInterface\u003e, IDeepCloneable\u003cNetworkInterface\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VM Migration v1 API class NetworkInterface.\n\nNetworkInterface represents a NIC of a VM. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e NetworkInterface \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.NetworkInterface), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.NetworkInterface), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NetworkInterface](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.NetworkInterface), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VMMigration.V1](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VMMigration.V1.dll\n\nConstructors\n------------\n\n### NetworkInterface()\n\n public NetworkInterface()\n\n### NetworkInterface(NetworkInterface)\n\n public NetworkInterface(NetworkInterface other)\n\nProperties\n----------\n\n### ExternalIp\n\n public string ExternalIp { get; set; }\n\nThe external IP to define in the NIC.\n\n### InternalIp\n\n public string InternalIp { get; set; }\n\nThe internal IP to define in the NIC.\nThe formats accepted are: `ephemeral` \\\\ ipv4 address \\\\ a named address\nresource full path.\n\n### Network\n\n public string Network { get; set; }\n\nThe network to connect the NIC to.\n\n### Subnetwork\n\n public string Subnetwork { get; set; }\n\nThe subnetwork to connect the NIC to."]]