R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

223
<Sysname> system-view
[Sysname] ip icmp source 1.1.1.1
ip mtu
Use ip mtu to configure an MTU for an interface.
Use undo ip mtu to restore the default.
Syntax
ip mtu mtu-size
undo ip mtu
Default
No MTU is configured for an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
mtu-size: Specifies an MTU in the range of 128 to 2000 bytes.
Usage guidelines
When a packet exceeds the MTU of the output interface, the device processes it in one of the following
ways:
If the packet disallows fragmentation, the device discards it.
If the packet allows fragmentation, the device fragments it and forwards the fragments.
Fragmentation and reassembling consume system resources, so set an appropriate MTU for an interface
to avoid fragmentation.
If an interface supports both the mtu and ip mtu commands, the device fragments a packet based on the
MTU set by the ip mtu command.
Examples
# Set the MTU of interface GigabitEthernet 2/1/1 to 1280 bytes.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip mtu 1280
ip redirects enable
Use ip redirects enable to enable sending ICMP redirect messages.
Use undo ip redirects enable to disable sending ICMP redirect messages.
Syntax
ip redirects enable
undo ip redirects enable