Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Rate Limitation

Network Requirements

  • There are two servers in the network, that is, Video server and Data server.
  • Configure the rate limitation function, and limit the total of the video traffic rate and the data traffic rate not to exceed 50000kbps. The data traffic rate does not exceed 20000kbps.

Network Topology

Networking of configuring the rate limitation

Figure 1-6 Networking of configuring the rate limitation

Configuration Steps

Step 1: Configure the link type of the VLAN and port on Device.

#Create VLAN2.

Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit

#Configure the link type of port gigabitethernet0/1 as Access and permit the services of VLAN2 to pass.

Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#switchport mode access
Device(config-if-gigabitethernet0/1)#switchport access vlan 2

#Configure the link type of port gigabitethernet0/2 as Trunk and permit the services of VLAN2 to pass.

Device(config-if-gigabitethernet0/1)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)#switchport mode trunk
Device(config-if-gigabitethernet0/2)#switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/2)#exit

Step 2: Configure the rate limitation function.

#Configure the port-based rate limitation on port gigabitethernet0/1 and limit the traffic rate to 50000kbps.

Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#rate-limit default 50000 4096
Device(config-if-gigabitethernet0/1)#exit

Step 3: Configure the meter function.

#Configure the meter named data_stream and limit the traffic rate to 20000kbps.

Device(config)#traffic-meter data_stream
Device(config-meter)#meter mode srtcm 20000 4096 4096
Device(config-meter)#exit

Step 4: Configure the egress action group.

#Configure the egress action group named data_stream and apply the meter in the egress action group.

Device(config)#egr-action-group data_stream
Device(config-egract-group)#meter data_stream
Device(config-egract-group)#exit

Step 5: Configure the IP standard ACL.

#Configure the IP standard ACL with serial number 1 on Device.

Device(config)#ip access-list standard 1

#Configure binding the rule with the egress action group named data_stream, and limit the data traffic rate to 20000kbps.

Device(config-std-nacl)#permit host 100.0.0.2 egr-action-group data_stream

#Configure the rule and permit the video traffic to pass.

Device(config-std-nacl)#permit host 100.0.0.1
Device(config-std-nacl)#commit
Device(config-std-nacl)#exit

Step 6: Configure applying the IP standard ACL.

#Apply the IP standard ACL with serial number 1 to the egress direction of port gigabitethernet0/2 on Device.

Device(config)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)#ip access-group 1 out
Device(config-if-gigabitethernet0/2)#exit

#View the information of the ACL applied to the port on Device.

Device#show acl-object interface  
-----------Interface-----Bind-----Instance 	 
Interface----------------Direction----AclType---AclName 
gi0/2                    OUT          IP        1            

Step 7: Check the result.

#After the video traffic and data traffic are processed by Device, the total of the video traffic rate and the data traffic sent out from port gigabitethernet0/2 does not exceed 50000kbps and the data traffic rate does not exceed 20000kbps.