Configuring traffic shaping, Configuration prerequisites, Configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual

Page 600: Configuration examples, Configuring port rate limiting

Advertising
background image

1-21

[Sysname] acl number 2000

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

[Sysname-acl-basic-2000] quit

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

Configuring Traffic Shaping

Only H3C S3100-EI series switches support this configuration.

Refer to section

Traffic Policing and Traffic Shaping

for information about traffic shaping.

Configuration prerequisites

z

The maximum traffic rate and the burst size are determined.

z

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

Configuration procedure

Table 1-22 Configure traffic shaping

Operation

Command

Description

Enter system view

system-view

Enter Ethernet port view

interface interface-type
interface-number

Configure traffic shaping

traffic-shape queue
queue-id max-rate burst-size

Required

Traffic shaping is not enabled by
default.

Configuration examples

# Perform traffic shaping for all the traffic to be transmitted through Ethernet 1/0/1, with the maximum

traffic rate being 640 kbps and the burst size being 16 KB.

<Sysname> system-view

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet1/0/1] traffic-shape 640 16

Configuring Port Rate Limiting

Refer to section

Port Rate Limiting

for information about port rate limiting. Note that, the target-rate

argument is committed information rate (CIR).

Configuration prerequisites

z

The port on which port rate limiting configuration is to be performed is determined.

z

The target rate and the direction of rate limiting (inbound or outbound) are determined.

Advertising