Function set

  • Change device attributes.

    Warning: If multiple parameter changes are requested, ip aborts immediately after any of the changes have failed.

    This is the only case when ip can move the system to an unpredictable state. The solution is to avoid changing several parameters with one ip link set call. The modifier change is equivalent to set.

    Parameters

    • options: LinkSetOptions

      Parameters options to be passed down to ip.

    • globalOptions: GlobalOptions = {}

      Global parameters options that affects the command execution.

    Returns Promise<Command<LinkSetOptions>>

    Throws

    ParametersError - Throws when passed parameters are invalid.

    Throws

    CommandError - Throws when the executed command fails.

Generated using TypeDoc