User Manual - Configuration Guide (Volume 3)
Versatile Routing Platform Chapter 2
Traffic Classification and Policing
2-7
Quidway(config-if-Ethernet0)# ip address 190.0.0.1 255.255.255.0
Quidway(config-if-Ethernet0)# rate-limit input 8000 8000 8000 conform transm it
exceed drop
! Apply CAR to all the packets outing Ethernet interface 1 of router A.
Quidway(config-if-Ethernet1)# ip address 191.0.0.1 255.255.255.0
Quidway(config-if-Ethernet1)# rate-limit output 8000 8000 8000 conform transmit
exceed drop
2.3.2 Apply CAR Rules to Packets Which is Matched the ACL
I. Requirements
z Apply CAR to packets entering serial 0 of router A and matching the specif ied ACL,
forwarding the packets according with the qualification, discarding those
unqualified ones.
z Apply CAR to packets outing serial 0 of router A and matching the specified ACL,
forwarding the packets according with the qualification, discarding those
unqualified ones.
II. Networking diagram
Figure QC-2-3 Networking diagram of apply CAR rules to packets which is matched the ACL
III. Configuration
Configure router A:
! Apply CAR to packets entering serial 0 of router A and matching the specif ied ACL.
Quidway(config)# access-list 1 permit 10.0.0.2
Quidway(config-if-Serial0)# ip address 10.0.0.1 255.255.255.0
Quidway(config-if-Serial0)# rate-limit input access-group 1 8000 8000 8000 conf orm
transmit exceed drop
! Apply CAR to packets outing serial 0 of router A and matching the specif ied ACL.
Quidway(config)# access-list 1 permit 10.0.0.2
Quidway(config-if-Serial0)# ip address 11.0.0.1 255.255.255.0
Quidway(config-if-Serial0)# rate-limit output access-group 1 8000 8000 8000 conform
transmit exceed drop
Router A
Router B
Router C
S0
10.0.0.2
S0
10.0.0.1 S0
11.0.0.2
S1
11.0.0.1