efa inventory device interface set-mtu

Configures the MTU (maximum transmission unit) at the physical port level for Layer 2, IPv4, and IPv6.

Syntax

efa inventory device interface set-mtu [--ip --if-type eth --if-name --mtu int --ip-mtu int --ipv6-mtu int32 --fabric --help]

Parameters

--ip
Specifies a comma-separated range of device IP addresses.
--if-type eth
Specifies that the interface type is Ethernet, which is the default setting.
--if-name
Specifies a comma-separated list of interface names.
--mtu int
Specifies the global Layer 2 MTU on a device. For SLX-OS 20.1.1 and later, valid values range from 1500 through 9216. For other SLX-OS versions, valid values range from1548 through 9216.
--ip-mtu int
Specifies the global IP MTU value on device. For SLX IPV4 or IPV6, valid values range from 1300 through 9194.
--ipv6-mtu int
Specifies the global IPv6 MTU on a device. For SLX IPV4 or IPV6, valid values range from 1300 through 9194.
--fabric
Specifies a fabric name.
--help
Displays help for set-mtu.

Usage Guidelines

In SLX-OS, you can use the show interface ethernet command to see the MTU configuration for an interface.

Examples

This example configures the MTU on one device.

efa inventory device interface set-mtu --ip 10.25.225.167 --if-name 0/20-22   
--mtu 2000 --ip-mtu 2000 --ipv6-mtu 3000
+---------------+----+------+----------------+------+--------+----------+---------
|   DeviceIP    | ID | Name | Interface Type | MTU  | IP MTU | IPv6 MTU | Result  
+---------------+----+------+----------------+------+--------+----------+---------
| 10.25.225.167 | 1  | 0/22 | ethernet       | 2000 | 2000   | 3000     | Success 
+               +----+------+----------------+------+--------+----------+---------
|               | 9  | 0/21 | ethernet       | 2000 | 2000   | 3000     | Success 
+               +----+------+----------------+------+--------+----------+---------
|               | 89 | 0/20 | ethernet       | 2000 | 2000   | 3000     | Success 
+---------------+----+------+----------------+------+--------+----------+---------
Interface MTU Details
--- Time Elapsed: 18.6886395s ---

This example attempts to configure the MTU for two IP addresses, however one IP address is invalid.

efa inventory device interface set-mtu --ip 10.25.225.167,10.10.10.10 
--if-name 0/20-22  --mtu 2500 --ip-mtu 2500 --ipv6-mtu 2500
---------------+----+------+----------------+------+--------+-----------------+------
|   DeviceIP    | ID | Name | Interface Type | MTU  | IP MTU |       IPv6 MTU |Result 
+---------------+----+------+----------------+------+--------+----------------+------
| 10.10.10.10   |    |      |                |      | Failed | Device does not
|               |    |      |                |      |        | exist with IP:
                                                               10.10.10.10
+---------------+----+------+----------------+------+--------+----------------+-------
| 10.25.225.167 | 89 | 0/20 | ethernet       | 2500 | 2500   | 2500           |Success
+               +----+------+----------------+------+--------+----------------+-------
|               | 1  | 0/22 | ethernet       | 2500 | 2500   | 2500           |Success
+               +----+------+----------------+------+--------+----------------+-------
|               | 9  | 0/21 | ethernet       | 2500 | 2500   | 2500           |Success
+---------------+----+------+----------------+------+--------+----------------+-------
Interface MTU Details
--- Time Elapsed: 18.6252821s ---

This example configures the MTU on multiple IP addresses.

efa inventory device interface set-mtu --ip 10.25.225.167,10.24.48.131,10.24.51.135 
--if-name 0/20-22   --mtu 3600 --ip-mtu 3600 --ipv6-mtu 3600
+---------------+-----+------+----------------+------+--------+----------+---------
|   DeviceIP    | ID  | Name | Interface Type | MTU  | IP MTU | IPv6 MTU | Result 
+---------------+-----+------+----------------+------+--------+----------+---------
| 10.25.225.167 | 9   | 0/21 | ethernet       | 3600 | 3600   | 3600     | Success 
+               +-----+------+----------------+------+--------+----------+---------
|               | 89  | 0/20 | ethernet       | 3600 | 3600   | 3600     | Success 
+               +-----+------+----------------+------+--------+----------+---------
|               | 1   | 0/22 | ethernet       | 3600 | 3600   | 3600     | Success 
+---------------+-----+------+----------------+------+--------+----------+---------
| 10.24.48.131  | 142 | 0/20 | ethernet       | 3600 | 3600   | 3600     | Success
+               +-----+------+----------------+------+--------+----------+---------
|               | 148 | 0/22 | ethernet       | 3600 | 3600   | 3600     | Success 
+               +-----+------+----------------+------+--------+----------+---------
|               | 110 | 0/21 | ethernet       | 3600 | 3600   | 3600     | Success 
+---------------+-----+------+----------------+------+--------+----------+---------
| 10.24.51.135  | 16  | 0/21 | ethernet       | 3600 | 3600   | 3600     | Success
+               +-----+------+----------------+------+--------+----------+---------
|               | 48  | 0/22 | ethernet       | 3600 | 3600   | 3600     | Success
+               +-----+------+----------------+------+--------+----------+---------
|               | 86  | 0/20 | ethernet       | 3600 | 3600   | 3600     | Success 
+---------------+-----+------+----------------+------+--------+----------+---------
Interface MTU Details
--- Time Elapsed: 59.5462548s ---                                    

This example configures the MTU for the specified Fabric name.

efa inventory device interface set-mtu --fabric nc_no_vni --if-name 0/20-22,0/55-58   
--mtu 3200 --ip-mtu 3200 --ipv6-mtu 3200
+--------------+-----+---------+----------------+------+--------+----------+---------+--------------------------
|   DeviceIP   | ID  |  Name   | Interface Type | MTU  | IP MTU | IPv6 MTU | Result  |       Reason             
+--------------+-----+---------+----------------+------+--------+----------+---------+--------------------------
| 10.24.51.135 | 16  | 0/21    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 48  | 0/22    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 86  | 0/20    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 0   | 0/55-58 | ethernet       | 0    | 0      | 0        | Failed  | Interfaces [0/55-58] 
|              |     |         |                |      |        |          |         | do not exist for   
													  device IP 10.24.51.135   
                                                                                       Specify a valid interface
+--------------+-----+---------+----------------+------+--------+----------+---------+--------------------------
| 10.24.48.131 | 0   | 0/55-58 | ethernet       | 0    | 0      | 0        | Failed  | Interfaces [0/55-58] 
|              |     |         |                |      |        |          |         | does not exist for   
													  device IP 10.24.51.131  
                                                                                       Specify a valid interface
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 110 | 0/21    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 148 | 0/22    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+              +-----+---------+----------------+------+--------+----------+---------+--------------------------
|              | 142 | 0/20    | ethernet       | 3200 | 3200   | 3200     | Success |                          
+--------------+-----+---------+----------------+------+--------+----------+---------+--------------------------
Interface MTU Details
--- Time Elapsed: 37.3021602s ---