# Change MTU Size For Existing Network Using OpenStack CLI/API

## Problem

The need exists to increase MTU size for an existing Network in OpenStack such that the new instances created on that network will have Jumbo frames enabled on the network interface.

## Environment

* Platform9 Managed OpenStack - All Versions
* OpenStack CLI - v4.0.0 and Higher

## Procedure

Network MTU can be increased via OpenStack CLI( latest version - 4.0.0 ) or via API call.

1. To increase the MTU size via CLI OpenStack CLI, run:

{% tabs %}
{% tab title="None" %}

```none
# openstack network set --mtu 8950 [network id ]
```

{% endtab %}
{% endtabs %}

**Note:** MTU option in the command is only available in the OpenStack CLI version 4.0.0 and higher. 2. To increase the MTU using the OpenStack API, run:

{% tabs %}
{% tab title="None" %}

```none
# curl -s -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json"  -H "Accept: application/json" -X PUT -d '{"network": {"mtu": 8950}}' http://[Management Plane FQDN]:9696/v2.0/networks/[networkid] |jq
```

{% endtab %}
{% endtabs %}

## Additional Information

* To check the version of Openstack CLI, use the following command.

{% tabs %}
{% tab title="None" %}

```none
# pip show python-openstackclient
```

{% endtab %}
{% endtabs %}

* To upgrade the OpenStack CLI version to the latest, run the following command.

{% tabs %}
{% tab title="None" %}

```none
# pip install --upgrade python-openstackclient
```

{% endtab %}
{% endtabs %}

* To obtain a token for API calls use the following command.

{% tabs %}
{% tab title="None" %}

```none
# TOKEN=$(openstack token issue -c id -f value)
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/change-mtu-size-for-existing-network-using-openstack-cli-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
