Command:  

random-detect (interface)


Mode:

Router(config-if)#


Syntax:

random-detect [dscp-based | prec-based]

no random-detect [dscp-based | prec-based]


Syntax Description:

dscp-based

(Optional) Specifies that WRED is to use the differentiated services code point (DSCP) value when it calculates the drop probability for a packet.

prec-based

(Optional) Specifies that WRED is to use the IP Precedence value when it calculates the drop probability for a packet.

Command Description:

To enable Weighted Random Early Detection (WRED) or distributed WRED (DWRED), use the random-detect interface configuration command. To configure WRED as class policy in a policy map, use the random-detect interface and policy-map class configuration command. To disable WRED or DWRED, use the no form of this command.


Example:

The following example configures WRED on the High-Speed Serial Interface (HSSI) 0/0/0 interface:

interface Hssi 0/0/0

random-detect

The following example configures the policy map called policy1 to contain policy specification for the class called class1. During times of congestion, WRED packet drop is used instead of tail drop.

! The following commands create the class map called class1:

class-map class 1

match input-interface FE0/1

! The following commands define policy1 to contain policy specification for class1:

policy-map policy1

class class 1

bandwidth 1000

random-detect

The following example enables WRED to use the DSCP value 8. The minimum threshold for the DSCP value 8 is 24 and the maximum threshold is 40. This configuration was performed at the interface level.

Router(config-if)#interface seo/0

Router(config-if)#random-detect dscp-based

Router(config-if)#random-detect dscp 8 24 40

The following example enables WRED to use the DSCP value 8 for class c1. The minimum threshold for DSCP value 8 is 24 and the maximum threshold is 40. The last line attaches the service policy to the output interface or virtual circuit (VC) p1.

Router(config-if)#class-map c1

Router(config-cmap)#match access-group101

Router(config-if)#policy-map p1

Router(config-pmap)#class c1

Router(config-pmap-c)#bandwidth 48

Router(config-pmap-c)#random-detect dscp-based

Router(config-pmap-c)#random-detect dscp 8 24 40

Router(config-if)#service-policy output p1

Misconceptions:

None


Related commands:

policy-map
show interfaces

� Cisco Systems, Inc. 2001, 2002
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)