HP MSR2000/3000/4000 Router Series Layer 3 - IP Services Command Reference

196
Examples
# Set the MTU of interface Ethernet 1/1 to 1280 bytes.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] ip mtu 1280
ip redirects enable
Use ip redirects enable to enable sending ICMP redirect packets.
Use undo ip redirects enable to disable sending ICMP redirect packets.
Syntax
ip redirects enable
undo ip redirects enable
Default
Sending ICMP redirect packets is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
ICMP redirect packets simplify host management and enable hosts to gradually optimize its routing
table.
A host that has only one route destined to the default gateway sends all packets to the default gateway.
The default gateway sends an ICMP redirect packet to inform the host of a correct next hop by following
these rules:
The receiving and sending interfaces are the same.
The selected route is not created or modified by any ICMP redirect packet.
The selected route is not destined for 0.0.0.0.
There is no source route option in the received packet.
Examples
# Enable sending ICMP redirect packets.
<Sysname> system-view
[Sysname] ip redirects enable
ip ttl-expires enable
Use ip ttl-expires enable to enable sending ICMP time-exceeded packets.
Use undo ip ttl-expires enable to disable sending ICMP time-exceeded packets.
Syntax
ip ttl-expires enable