The ICMP Router Discovery Protocol (IRDP) uses ICMP router advertisements and router solicitation messages to allow a network host to discover the addresses of operational gateways on the subnet. IRDP is an alternative gateway discovery method that eliminates the need for manual configuration of gateway addresses on network hosts and is independent of any specific routing protocol.
It is important to remember that ICMP router discovery messages do not constitute a routing protocol. Instead, they enable hosts to discover the existence of neighboring gateways, but do not determine which gateway is best to reach a particular destination.
On networks with more than one gateway, if a host chooses a poor gateway for a particular destination, it should receive an ICMP Redirect from that router, identifying a better gateway to reach the required destination host. This concept is illustrated in Figure 8-28.
Figure 8-28: IRDP and ICMP Redirects

Referencing Figure 8-28, Multilayer Switch 1 is connected to router R1 and is receiving the default route, as well as routing entries for the 1.0.0.0/8 and 2.0.0.0/8 networks. Multilayer Switch 2 is connected to router R2 and is receiving only the default route from this router. However, it is receiving the 1.0.0.0/8 and 2.0.0.0/8 networks from Switch 1.
The LAN has been configured to run IRDP and Host 1 and Host 2 are running an Internet Control Message Protocol (ICMP) router discovery client, which allows them to listen to the ICMP router advertisements being sent by Switch 1 and Switch 2.
Host 2 selects Switch 2 as its gateway and decides it wants to send a packet to 1.1.1.1. Switch 2 receives this request but knows that Switch 1 has a better path to the destination, and so it sends an ICMP Redirect to Host 2, telling it to use Switch 1instead. Host 2 receives the ICMP Redirect and forwards the packet to Switch 1, which forwards it to R1.
By default, ICMP router advertisements are sent out as Broadcast packets to the destination address 255.255.255.255., as shown in Figure 8-29.
Figure 8-29: IRDP Broadcast Router Advertisements

However, Cisco IOS allows administrators to configure the gateways to send IRDP messages using IP Multicast, to the destination address 224.0.0.1 as shown in Figure 8-30.
Figure 8-30: IRDP Multicast Router Advertisements

NOTE: Going into detail on the IRDP packet format is beyond the scope of the SWITCH exam.
IRDP is enabled on a router interface using the ip irdp interface configuration command. This configures the router to Broadcast router advertisement messages. To configure the router to Multicast messages instead, theip irdp multicast interface configuration command must be added to the configuration. Example 8-57 illustrates how to enable IRDP using Multicast.
Example 8-57: Enabling IRDP using IP Multicast
| Gateway-R1(config)#interface fastethernet 0/0 Gateway-R1(config-if)#ip irdp Gateway-R1(config-if)#ip irdp multicast Gateway-R1(config-if)#exit |
IRDP configuration can be validated using the show ip irdp [interface] command as illustrated in Example 8-58.
Example 8-58: Verifying IRDP Configuration
| Gateway-R1#show ip irdp FastEthernet0/0 has router discovery enabledAdvertisements will occur between every 450 and 600 seconds. Advertisements are sent with multicasts. Advertisements are valid for 1800 seconds. Default preference will be 0. |
By default, Cisco IOS software sends out IRDP advertisements between every 450 and 600 seconds. This default message interval time can be modified using the ip irdp minadvertinterval [3-1800] interface configuration command to specify the minimum interval between advertisements and the ip irdp maxadvertinterval [0, 4-1800] interface configuration command to specify the maximum interval between advertisements.
NOTE: Issuing the ip irdp maxadvertinterval 0 interface configuration command causes the router to advertise only when solicited by clients.
Example 8-59 illustrates how to configure the router to send IRDP router advertisement messages between every 3 and 5 seconds.
Example 8-59: Configuring IRDP Router Advertisement Intervals
| Gateway-R1(config)#interface fastethernet 0/0 Gateway-R1(config-if)#ip irdp minadvertinterval 3 Gateway-R1(config-if)#ip irdp maxadvertinterval 5 Gateway-R1(config-if)#exit |
This configuration is verified using the show ip irdp command, as shown in Example 8-60 below.
Example 8-60: Verifying IRDP Router Advertisement Intervals
| Gateway-R1#show ip irdp FastEthernet0/0 has router discovery enabledAdvertisements will occur between every 3 and 5 seconds. Advertisements are sent with multicasts. Advertisements are valid for 15 seconds. Default preference will be 0. |