1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class LogicalInterface.Types.LogicalNetworkInterface : IMessage<LogicalInterface.Types.LogicalNetworkInterface>, IEquatable<LogicalInterface.Types.LogicalNetworkInterface>, IDeepCloneable<LogicalInterface.Types.LogicalNetworkInterface>, IBufferMessage, IMessage

Reference documentation and code samples for the Bare Metal Solution v2 API class LogicalInterface.Types.LogicalNetworkInterface.

Each logical network interface is effectively a network and IP pair.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LogicalInterface.Types.LogicalNetworkInterface

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[LogicalInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.md.txt)[LogicalNetworkInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.LogicalNetworkInterface.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LogicalInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.md.txt)[LogicalNetworkInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.LogicalNetworkInterface.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[LogicalInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.md.txt)[LogicalNetworkInterface](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.LogicalInterface.Types.LogicalNetworkInterface.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### LogicalNetworkInterface()

    public LogicalNetworkInterface()

### LogicalNetworkInterface(LogicalNetworkInterface)

    public LogicalNetworkInterface(LogicalInterface.Types.LogicalNetworkInterface other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LogicalInterfaceTypesLogicalNetworkInterface` |

## Properties

### DefaultGateway

    public bool DefaultGateway { get; set; }

Whether this interface is the default gateway for the instance. Only
one interface can be the default gateway for the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Id

    public string Id { get; set; }

An identifier for the `Network`, generated by the backend.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### IpAddress

    public string IpAddress { get; set; }

IP address in the network

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Network

    public string Network { get; set; }

Name of the network

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NetworkType

    public Network.Types.Type NetworkType { get; set; }

Type of network.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NetworkTypesType` |   |