08-25-2020 04:24 AM
Hi,
I have 20 Gbps internet connection ISP and want to manage the 20 Gbps for Costumer A, B, and C.
I want to limit customer A to 10 Gbps, customer B to 5 Gbps, and customer C to 5 Gbps. If follow the topology, how can I do that with QoS? especially its configuration
Thanks!
08-25-2020 04:39 AM - edited 08-25-2020 04:40 AM
example (is this works for you ?)
CUSTOMER A
access-list 101 permit ip any x.x.x.x x.x.x.x
CUSTOMER B
access-list 102 permit ip any y.y.y.y y.y.y.y
CUSTOMER C
access-list 103 permit ip any z.z.z.z z.z.z.z
class-map CUST_A
match access-group 101
class-map CUST_B
match access-group 102
class-map CUST_C
match access-group 103
policy-map CUSTOMERS
class-map CUST_A
bandwidth percent 50
class-map CUST_B
bandwidth percent 25
class-map CUST_C
bandwidth percent 25
policy-map TOTAL_BW
class class-default
police 20000000 conform-action transmit exceed-action drop ( check 20GB Zeros, may be typo wrong)
service-policy CUSTOMERS
exit
int x/x
service-policy output TOTAL_BW
08-25-2020 04:59 AM
Hello,
what device is the edge switch (the one connected to the ISP) ?
In order to leverage what you have (20Gbps of bandwidth), the below parent/child shaper would guarantee the required bandwidth per customer, and in case it is not used, be available to the other customers. IP addresses for your customers are arbitrary obviously, so you probably need to change the subnets in the access lists. Looking at your drawing, it appears that you have a port channel configured ? Either way, apply the parent service policy outbound to the outgoing interface:
ip access-list CUSTOMER-A-ACL
permit 192.168.10.0 0.0.0.255 any
!
ip access-list CUSTOMER-B-ACL
permit 192.168.20.0 0.0.0.255 any
!
ip access-list CUSTOMER-C-ACL
permit 192.168.30.0 0.0.0.255 any
!
class-map CUSTOMER-A-CM
match access-group CUSTOMER-A-ACL
!
class-map CUSTOMER-B-CM
match access-group CUSTOMER-B-ACL
!
class-map CUSTOMER-C-CM
match access-group CUSTOMER-C-ACL
!
policy-map CHILD_SHAPER
class CUSTOMER-A-CM
priority 10240000
class CUSTOMER-B-CM
priority 5120000
class CUSTOMER-C-CM
priority 5120000
class class-default
fair-queue
!
policy-map PARENT_SHAPER
class class-default
shape average 20480000000
service-policy CHILD_SHAPER
!
interface X
description Aggregate Link to ISP
service-policy PARENT_SHAPER out
08-25-2020 09:35 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide