4-8
<SwitchA> system-view
[SwitchA] interface gigabitethernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] qos gts any cir 700
[SwitchA-GigabitEthernet1/0/3] quit
# Configure ACLs to permit the packets from Server and Host A.
[SwitchA] acl number 2001
[SwitchA-acl-basic-2001] rule permit source 1.1.1.1 0
[SwitchA-acl-basic-2001] quit
[SwitchA] acl number 2002
[SwitchA-acl-basic-2002] rule permit source 1.1.1.2 0
[SwitchA-acl-basic-2002] quit
# Configure CAR policies for different flows received on GigabitEthernet 1/0/1.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] qos car inbound acl 2001 cir 560 red discard
[SwitchA-GigabitEthernet1/0/1] qos car inbound acl 2002 cir 350 red discard
2) Configure Switch B
# Configure a CAR policy on GigabitEthernet 1/0/1 to limit the receiving rate to 700 kbps. Violating
packets are dropped.
# Create ACL 2001 and configure it to match all packets.
<SwitchB> system-view
[SwitchB] acl number 2001
[SwitchB-acl-basic-2001] rule permit
# Configure traffic policing on GigabitEthernet 1/0/1.
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] qos car inbound acl 2001 cir 700 red discard