Changing the MTU size for existing networks using OpenStack CLI/API
Objective
Jumbo frames are Ethernet frames with more than 1500 bytes of payload. They can carry up to 9000 bytes of payload. Using them minimizes routing processing time. In the case of vRack, this will optimize traffic on it.
But if connectivity from a fully private instance to outside networks (Internet) is done in the network, the MTU has to be set to 1500 bytes of payload.
The MTU size will be the same for all services using IPs in the same network.
This guide explains how to change the MTU size for an existing network using OpenStack CLI/API.
Requirements
- A Public Cloud project in your OVHcloud account
- Using the OpenStack command line environment
- The OpenStack Command Line Interface tool installed on your working environment
Before proceeding, it is recommended that you read these guides:
- Preparing an environment to use the OpenStack API
- Setting OpenStack environment variables
- Managing tokens
Instructions
Step 1: Listing networks available in the Public Cloud project
List available networks in the region:
You can grab the ID of your private network ( Ext-Net is a public network used for public IP addresses and is managed by OVHcloud).
Step 2: Displaying private network parameters
Use the following command to display the private network parameters:
Step 3: Setting the new MTU size
- Using the OpenStack CLI:
- Using the OpenStack API:
- Using Terraform
With the resource networking_network_v2 from the OpenStack provider, you can set the value for the MTU attribute.
Step 4: Verifying the changes
Display the private network parameters to verify that the change is applied:
Step 5: Restarting the services
Updating the MTU value for an existing network with instances plugged into it requires a hard reboot of those instances which have a port in this network:
- Public cloud instances
- Managed Kubernetes Node(s) if you use a custom gateway deployed in vRack with a Managed Kubernetes cluster.
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users on https://community.ovh.com/en/.