Skip to main content

NetworkInterface

namestringrequired

Kernel interface name, e.g. enp1s0.

macstring

Hardware address, if known.

methodNetworkAddressMethodrequired

How this interface obtains its address.

Possible values: [dhcp, static]

addressstring

Configured IPv4 or IPv6 address without prefix.

prefixinteger

Prefix length for address.

Possible values: >= 0 and <= 128

gatewaystring

Default gateway for this interface, if any.

dnsstring[]

DNS nameservers used with this configuration.

statestringrequired

Link operational state.

Possible values: [up, down]

NetworkInterface
{
"name": "string",
"mac": "string",
"method": "dhcp",
"address": "string",
"prefix": 0,
"gateway": "string",
"dns": [
"string"
],
"state": "up"
}