2020-10-23 10:57:52 -04:00
|
|
|
|
|
|
|
.. hyg1467916541021
|
|
|
|
.. _changing-the-mtu-of-a-data-interface-using-the-cli:
|
|
|
|
|
|
|
|
================================================
|
|
|
|
Change the MTU of a Data Interface Using the CLI
|
|
|
|
================================================
|
|
|
|
|
2021-03-18 08:11:53 -03:00
|
|
|
You can change the |MTU| value for a data interface from the |os-prod-hor-long|
|
|
|
|
or the |CLI|.
|
2020-10-23 10:57:52 -04:00
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
2021-03-18 08:11:53 -03:00
|
|
|
You can use |CLI| commands to lock and unlock hosts, and to modify the |MTU| on
|
|
|
|
the hosts.
|
2020-10-23 10:57:52 -04:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ system host-lock <nodeName>
|
2021-03-18 08:11:53 -03:00
|
|
|
~(keystone_admin)]$ system host-if-modify <nodeName> <interfaceName> --imtu <mtuSize>
|
2020-10-23 10:57:52 -04:00
|
|
|
~(keystone_admin)]$ system host-unlock <nodeName>
|
|
|
|
|
|
|
|
where:
|
|
|
|
|
|
|
|
**<nodename>**
|
|
|
|
is the name of the host
|
|
|
|
|
|
|
|
**<interface name>**
|
|
|
|
is the name of the interface
|
|
|
|
|
2023-02-28 14:02:05 +00:00
|
|
|
**<mtu_size>**
|
2021-03-18 08:11:53 -03:00
|
|
|
is the new |MTU| value
|
2020-10-23 10:57:52 -04:00
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-18 08:11:53 -03:00
|
|
|
~(keystone_admin)]$ system host-if-modify compute-0 enp0s8 --imtu 1496
|
2020-10-23 10:57:52 -04:00
|
|
|
|
|
|
|
.. note::
|
2021-03-18 08:11:53 -03:00
|
|
|
You cannot set the |MTU| on an openstack-compute-labeled compute node
|
|
|
|
interface to a value smaller than the largest |MTU| used on its data
|
2020-10-23 10:57:52 -04:00
|
|
|
networks.
|