Modifier la MTU d’une DirectLink interface

Vous pouvez modifier la maximum transmission unit (MTU) d’une DirectLink interface.

Pour en savoir plus sur les DirectLink interfaces, voir À propos de DirectLink > Connexions DirectLink et DirectLink interfaces.

Modifier la MTU d’une DirectLink interface avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

The UpdateDirectLinkInterface command modifies the maximum transmission unit (MTU) of a DirectLink interface.

Request sample
$ osc-cli api UpdateDirectLinkInterface --profile "default" \
    --DirectLinkInterfaceId "dxvif-12345678" \
    --Mtu 1500

This command contains the following attributes that you need to specify:

  • DirectLinkInterfaceId: The ID of the DirectLink interface you want to update.

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • Mtu: The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always 1500).

The UpdateDirectLinkInterface command returns the following elements:

  • DirectLinkInterface: Information about the DirectLink interfaces.

    • AccountId: The account ID of the owner of the DirectLink interface.

    • BgpAsn: The BGP (Border Gateway Protocol) ASN (Autonomous System Number) on the customer’s side of the DirectLink interface.

    • BgpKey: The BGP authentication key.

    • ClientPrivateIp: The IP on the customer’s side of the DirectLink interface.

    • DirectLinkId: The ID of the DirectLink.

    • DirectLinkInterfaceId: The ID of the DirectLink interface.

    • DirectLinkInterfaceName: The name of the DirectLink interface.

    • InterfaceType: The type of the DirectLink interface (always private).

    • Location: The datacenter where the DirectLink interface is located.

    • Mtu: The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always 1500).

    • OutscalePrivateIp: The IP on the OUTSCALE side of the DirectLink interface.

    • State: The state of the DirectLink interface (pending | available | deleting | deleted | confirming | rejected | expired).

    • VirtualGatewayId: The ID of the target virtual gateway.

    • Vlan: The VLAN number associated with the DirectLink interface.

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "DirectLinkInterface": {
    "Vlan": 101,
    "OutscalePrivateIp": "172.16.0.4/30",
    "DirectLinkInterfaceId": "dxvif-12345678",
    "BgpAsn": 65000,
    "AccountId": "123456789012",
    "ClientPrivateIp": "172.16.0.5/30",
    "VirtualGatewayId": "vgw-12345678",
    "DirectLinkInterfaceName": "MyDirectLinkInterface",
    "DirectLinkId": "dxcon-12345678",
    "Mtu": 1500,
    "State": "available",
    "InterfaceType": "private",
    "Location": "PAR1"
  }
}

Pages connexes

Méthode API correspondante