Router Discovery Protocol Commands

Use these commands to view and configure Router Discovery Protocol (RDP) settings on the switch.

The Router Discovery Protocol enables a host to discover the IP address of routers on the subnet.

ip irdp

M4250

M4350

This command enables router discovery on an interface or range of interfaces.

Default disabled
Format ip irdp
Mode Interface Config

no ip irdp

This command disables router discovery on an interface.

Format no ip irdp
Mode Interface Config

ip irdp address

M4250

M4350

This command configures the address that the interface uses to send the router discovery advertisements. The valid values for ipaddr are 224.0.0.1, which is the all-hosts IP multicast address, and 255.255.255.255, which is the limited broadcast address.

Default 224.0.0.1
Format ip irdp address ipaddr
Mode Interface Config

no ip irdp address

This command configures the default address that is used for router advertisements on the interface.

Format no ip irdp address
Mode Interface Config

ip irdp holdtime

M4250

M4350

This command configures the value of the hold time field of the router advertisement sent from this interface. The seconds argument hold time value is in the range from 4 to 9000 seconds.

Default 3 * maxinterval
Format ip irdp holdtime seconds
Mode Interface Config

no ip irdp holdtime

This command resets the default value of the hold time field of the router advertisement sent from this interface.

Format no ip irdp holdtime
Mode Interface Config

ip irdp maxadvertinterval

M4250

M4350

This command configures the maximum time allowed between sending router advertisements from the interface. The range for the seconds argument is 4 to 1800 seconds.

Default 600
Format ip irdp maxadvertinterval seconds
Mode Interface Config

no ip irdp maxadvertinterval

This command resets the default maximum time.

Format no ip irdp maxadvertinterval
Mode Interface Config

ip irdp minadvertinterval

M4250

M4350

This command configures the minimum time allowed between sending router advertisements from the interface. The range for the seconds argument is 3–1800 seconds.

Default 0.75 * maxadvertinterval
Format ip irdp minadvertinterval seconds
Mode Interface Config

no ip irdp minadvertinterval

This command resets the default minimum time to the default.

Format no ip irdp minadvertinterval
Mode Interface Config

ip irdp multicast

M4250

M4350

This command configures the destination IP address for router advertisements as 224.0.0.1, which is the default address. The no form of the command configures the IP address as 255.255.255.255 to instead send router advertisements to the limited broadcast address.

Format ip irdp multicast
Mode Interface Config

no ip irdp multicast

By default, router advertisements are sent to 224.0.0.1. To instead send router advertisements to the limited broadcast address, 255.255.255.255, use the no form of this command.

Format no ip irdp multicast
Mode Interface Config

ip irdp preference

M4250

M4350

This command configures the preferability of the address as a default router address, relative to other router addresses on the same subnet. The preference number can be a number from -2147483648 to 2147483647.

Default 0
Format ip irdp preference number
Mode Interface Config

no ip irdp preference

This command configures the default preferability of the address as a default router address, relative to other router addresses on the same subnet.

Format no ip irdp preference
Mode Interface Config

show ip irdp

M4250

M4350

This command displays the router discovery information for all interfaces, a specified interface, or specified VLAN. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id argument are used to specify the VLAN ID of the routing VLAN. The vlan-id argument can be a number from 1–4093.

Format show ip irdp {unit/slot/port | vlan vlan-id | all}
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface that corresponds to a physical routing interface or VLAN routing interface.
vlan Use this keyword to specify the VLAN ID of the routing VLAN.
Ad Mode The advertise mode, which indicates whether router discovery is enabled or disabled on this interface.
Dest Address The destination IP address for router advertisements.
Max Int The maximum advertise interval, which is the maximum time, in seconds, allowed between sending router advertisements from the interface.
Min Int The minimum advertise interval, which is the minimum time, in seconds, allowed between sending router advertisements from the interface.
Hold Time The amount of time, in seconds, that a system should keep the router advertisement before discarding it.
Preference The preference of the address as a default router address, relative to other router addresses on the same subnet.