H3C Technologies H3C S6300 Series Switches User Manual

Page 75

Advertising
background image

65

[SwitchA-acl-basic-2001] quit

# Configure IPv4 basic ACL 2002 to match the outgoing traffic of the R&D department.

[SwitchA] acl number 2002

[SwitchA-acl-basic-2002] rule permit source 192.168.2.0 0.0.0.255

[SwitchA-acl-basic-2002] quit

# Create class admin, and use ACL 2001 as the match criterion.

[SwitchA] traffic classifier admin

[SwitchA-classifier-admin] if-match acl 2001

[SwitchA-classifier-admin] quit

# Create class rd, and use ACL 2002 as the match criterion.

[SwitchA] traffic classifier rd

[SwitchA-classifier-rd] if-match acl 2002

[SwitchA-classifier-rd] quit

# Create traffic behavior car_admin_rd, and configure traffic policing to limit the traffic rate to
102400 kbps.

[SwitchA] traffic behavior car_admin_rd

[SwitchA-behavior-car_admin_rd] car cir 102400

[SwitchA-behavior-car_admin_rd] quit

# Create QoS policy car, and associate classes admin and rd with behavior car_admin_rd.

[SwitchA] qos policy car

[SwitchA-qospolicy-car] classifier admin behavior car_admin_rd

[SwitchA-qospolicy-car] classifier rd behavior car_admin_rd

[SwitchA-qospolicy-car] quit

2.

Limit the upstream traffic of the marketing department:
# Configure IPv4 basic ACL 2003 to match the outgoing traffic of the sub-department 1 of the
marketing department.

[SwitchA] acl number 2003

[SwitchA-acl-basic-2003] rule permit source 192.168.3.0 0.0.0.255

[SwitchA-acl-basic-2003] quit

# Configure IPv4 basic ACL 2004 to match the outgoing traffic of the sub-department 2 of the

marketing department.

[SwitchA] acl number 2004

[SwitchA-acl-basic-2004] rule permit source 192.168.4.0 0.0.0.255

[SwitchA-acl-basic-2004] quit

# Configure class marketing to match the outgoing traffic of the two sub-departments of the

marketing department.

[SwitchA] traffic classifier marketing operator or

[SwitchA-classifier-marketing] if-match acl 2003

[SwitchA-classifier-marketing] if-match acl 2004

[SwitchA-classifier-marketing] quit

# Configure behavior remark_local_id to mark traffic with local QoS ID 100.

[SwitchA] traffic behavior remark_local_id

[SwitchA-behavior-remark_local_id] remark qos-local-id 100

[SwitchA-behavior-remark_local_id] quit

# Configure class marketing_car to match the outgoing traffic of the two sub-departments of the
marketing department.

Advertising