To do…

 

Use the command…

 

Remarks

 

 

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

 

 

 

Enter Ethernet port

 

interface interface-type interface-number

 

 

 

 

view

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Configure traffic

 

traffic-limit inbound acl-ruletarget-rate

 

Required

 

 

 

 

[ conform con-action] [ exceed

 

By default, traffic policing is

 

 

 

policing

 

 

 

 

 

exceed-action] [ meter-statistic ]

 

disabled.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clear the traffic

 

reset traffic-limit inbound acl-rule

Optional

 

 

 

policing statistics

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

As the priority of traffic classification rules is higher than that of the default rules used for processing protocol packets, configuring traffic policing for all the packets or packets of a VLAN may affect device management that is implemented through Telnet and so on.

Configuration example

zGigabitEthernet 1/0/1 belongs to VLAN 2 and is connected to the 10.1.1.0/24 network segment

zPerform traffic policing on the packets from the 10.1.1.0/24 network segment, setting the rate to 128 kbps

zMark the DSCP precedence as 56 for the inbound packets exceeding the rate limit.

1)Method I

<device> system-view [device] acl number 2000

[device-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255

[device-acl-basic-2000] quit

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] traffic-limit inbound ip-group 2000 128 exceed remark-dscp 56

2)Method II

<device> system-view [device] acl number 2000

[device-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255

[device-acl-basic-2000] quit

[device] traffic-limit vlan 2 inbound ip-group 2000 128 exceed remark-dscp 56

Configuring Traffic Shaping

Refer to Traffic Policing and Traffic Shaping for information about traffic shaping.

Configuration prerequisites

z

z

z

The queue for which traffic shaping is to be performed is determined. The maximum traffic rate and the burst size are determined.

The port where traffic shaping is to be configured is determined.

1-22

Page 383
Image 383
3Com WX3000 operation manual Configuring Traffic Shaping, View Configure traffic, By default, traffic policing is Policing