Modifying the MTU of a DirectLink Interface
You can modify the maximum transmission unit (MTU) of a DirectLink interface.
For more information on DirectLink interfaces, see About DirectLink > DirectLink Connections and Private Virtual Interfaces.
Modifying the MTU of a DirectLink Interface Using OSC CLI
The UpdateDirectLinkInterface command modifies the maximum transmission unit (MTU) of a DirectLink interface.
$ 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 (always1500
).
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 (alwaysprivate
). -
Location
: The datacenter where the DirectLink interface is located. -
Mtu
: The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always1500
). -
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.
-
{
"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"
}
}
Modifying the MTU of a DirectLink Interface Using oapi-cli
The UpdateDirectLinkInterface command modifies the maximum transmission unit (MTU) of a DirectLink interface.
$ oapi-cli --profile "default" UpdateDirectLinkInterface \
--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 (always1500
).
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 (alwaysprivate
). -
Location
: The datacenter where the DirectLink interface is located. -
Mtu
: The maximum transmission unit (MTU) of the DirectLink interface, in bytes (always1500
). -
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.
-
{
"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"
}
}
Related Pages
Corresponding API Method