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
mdc-admin
Usage guidelines
ICMP redirect messages simplify host management and enable hosts to gradually optimize their routing tables.
A host that has only one route destined for 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 messages.
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