Ruijie Community

Title: How to configure rate limiting based on vlan on Ruijie Switch? [Print this page]

Author: GTAC-Sophia    Time: 2023-7-11 17:26
Title: How to configure rate limiting based on vlan on Ruijie Switch?
You can configure QOS to implement rate limiting for users on different network segments based on specific packet flows as follows:

1. Use ACL to classify traffic
Ruijie>en
Ruijie#config ter
Ruijie(config)#access-list 100 permit ip192.168.1.0 0.0.0.255 any ------> Define the data flows on network segmentcompany a. If you want to match all the traffic, you can set it to permit ipany any
Ruijie(config)# class-map companya
Ruijie(config-cmap)# match access-group 100
Ruijie(config-cmap)#exit
Ruijie(config)# policy-map companya
Ruijie(config-pmap)#class companya
Ruijie(config-pmap-c)#police 10000 1024exceed-action drop
Ruijie(config-pmap-c)#exit
Ruijie(config-pmap)#exit
Ruijie(config)# interface gigabitEthernet 1/1
Ruijie(config-if-GigabitEthernet1/1)#service-policy input companya


2. Configure rate-limit to limit the rate of traffic on the port
Ruijie(config)#interface gigabitEthernet 1/1------> Enter the interface
Ruijie(config-if-GigabitEthernet 1/1)#rate-limitinput 10000 1024
Ruijie(config-if-GigabitEthernet 1/1)#rate-limitoutput 10000 1024
Ruijie(config)#interface gigabitEthernet 1/2------> Enter the interface
Ruijie(config-if-GigabitEthernet 1/2)#rate-limitinput 8000 1024
Ruijie(config-if-GigabitEthernet 1/2)#rate-limitoutput 8000 1024
Ruijie(config)#interface gigabitEthernet 1/3------> Enter the interface
Ruijie(config-if-GigabitEthernet 1/3)#rate-limitoutput 20000 2048
Ruijie(config-if-GigabitEthernet 1/3)#rate-limitoutput 20000 2048





Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2