Share via


Service.MacAddress Property

Definition

Specifies a custom MAC (Media Access Control) address for the container's network interface.

[YamlDotNet.Serialization.YamlMember(Alias="mac_address")]
public string? MacAddress { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="mac_address")>]
member this.MacAddress : string with get, set
Public Property MacAddress As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

A MAC address is a unique identifier assigned to a network interface controller (NIC). Setting this property allows for specifying a predefined MAC address instead of letting the system assign one dynamically. This can be useful for use cases where a consistent MAC address is required, such as DHCP reservations or specific network configurations.

Applies to