161
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
Default
Sending ICMP redirect messages is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
ICMP redirect messages 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 message 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 message.
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 messages.
<Sysname> system-view
[Sysname] ip redirects enable
ip ttl-expires enable
Use ip ttl-expires enable to enable sending ICMP time-exceeded messages.
Use undo ip ttl-expires enable to disable sending ICMP time-exceeded messages.
Syntax
ip ttl-expires enable
undo ip ttl-expires enable
Default
Sending ICMP time-exceeded messages is disabled.
Views
System view
Predefined user roles
network-admin