Type alias NetworkInterface

NetworkInterface: {
    dns?: string[];
    gateway?: string;
    ipaddr?: string;
    netmask?: string;
    proto: NetworkProto;
}

Configuration of a network interface.

Type declaration

  • Optional dns?: string[]

    List of IPv4 addresses of DNS servers to use. If empty or not set, DNS servers provided by DHCP will be used.

  • Optional gateway?: string

    IPv4 gateway to setup default route.

  • Optional ipaddr?: string

    IPv4 address to use for this interface, if proto is STATIC. Example: "192.168.88.1".

  • Optional netmask?: string

    IPv4 netmask to use for this interface, if proto is STATIC. Example: "255.255.255.0".

  • proto: NetworkProto

    Network protocol to use for this interface.

Generated using TypeDoc