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 device-ip | --if-type <string>--if-name <string> --mtu int32 <string> --ip-mtu int32 <string> --ipv6-mtu int32<string> --help]

Parameters

--ip device-ip
Specifies the IP address of the device.
--if-type <string>
Optional Interface type default value is 'eth'. Current support is only for 'eth'.
--if-name <string>
Comma separated range of Interface names addresses and should unique. Example: 0/50-52,0/45.
--mtu int32 <string>
MTU value to configure global L2 mtu on device. For SLX-OS 21.1 and higher versions The MTU size in bytes is <Number:1500-9216>. For other SLX-OS versions: The MTU size in bytes is <Number:1548-9216>.
--ip-mtu int32 <string>
IP MTU value to configure global ip-mtu on device. For SLX IPV4/IPV6 MTU size in bytes <Number:1300-9194>
--ipv6-mtu int32 <string>
IPv6 MTU value to configure global ipv6-mtu on device. For SLX IPV4/IPV6 MTU size in bytes <Number:1300-9194>
--help
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 for two Ethernet interfaces for IP address 10.x.x.x.

# efa inventory device interface set-mtu --ip 10.x.x.x  
--if-type eth --if-name 0/11,0/12 --mtu 1600 --ip-mtu 700 --ipv6-mtu 1800

Interface MTU Successfully Updated
+-----+------+----------------+------+--------+----------+
| ID  | Name | Interface Type | MTU  | IP MTU | IPv6 MTU |
+-----+------+----------------+------+--------+----------+
| 99  | 0/11 | ethernet       | 1600 | 1700   | 1800     |
+-----+------+----------------+------+--------+----------+
| 102 | 0/12 | ethernet       | 1600 | 1700   | 1800     |
+-----+------+----------------+------+--------+----------+ 
Interface MTU Details
--- Time Elapsed: 42.769852714s ---