Riverstone Networks WICT1-12 Network Router User Manual


 
31-14 Riverstone Networks RS Switch Router User Guide Release 8.0
Rate Limiting Configuration Examples Service Configuration
Flow-Aggregate Rate Limiting
The following is an example of configuring flow-aggregate rate limiting.
Figure 31-5 Flow-aggregate rate limiting
In the example above, traffic from the subnetwork 122.132.0.0/16 to the Internet will be rate limited to 256 Kbps while
traffic to the subnetwork will be rate limited to 64 Kbps.
vlan create client1 ip
vlan create client2 ip
vlan create backbone ip
vlan add ports et.1.1 to client1
vlan add ports et.1.2 to client2
vlan add ports et.1.8 to backbone
interface create ip ipclient1 vlan client1 address-netmask 1.1.1.1/8
interface create ip ipclient2 vlan client2 address-netmask 3.3.3.3/8
interface create ip backbone vlan backbone address-netmask 2.2.2.2/8
acl 100 permit ip 1.2.2.2
acl 200 permit ip 3.1.1.1
rate-limit client1 input acl 100 rate 10000000 exceed-action drop-packets
rate-limit client2 input acl 200 rate 10000000 exceed-action drop-packets
rate-limit client1 apply interface ipclient1
rate-limit client2 apply interface ipclient2
acl cust1 permit ip any 122.132.0.0/16
acl cust1 permit ip 122.132.0.0/16 any
rate-limit cust1 flow-aggregate acl cust1 rate 256000 exceed-action drop-packets
min-bandwidth 4000
rate-limit apply cust1 interface tonet
rate-limit cust1 flow-aggregate acl cust1 rate 64000 exceed-action drop-packets
min-bandwidth 2000
rate-limit apply cust1 interface in1
Network
Subnetwork
122.132.0.0/16
256 Kbps
64 Kbps