11-14-2022 12:28 AM
I have a C3900 cisco router and I want to limit internet bandwidth for some users using there ip address. How can I do this?
I appreciate any replay.
Solved! Go to Solution.
11-14-2022
01:01 AM
- last edited on
11-22-2022
09:31 PM
by
Translator
as @Thomas Schmitt mentioned, you could use an ACL to shape traffic for traffic. I added an example you can use below.
There are different ways to do this, and if you want to test in a lab, check out this link on QoS on Cisco IOS:
1. enable
2. configure terminal
3. access-list access-list-number {deny | permit} source [source-wildcard]
4. interface type number
5. traffic-shape group access-list bit-rate [burst-size [excess-burst-size]]
6. end
7. show traffic-shape [interface-type interface-number]
8. show traffic-shape statistics [interface-type interface-number]
9. exit
Command or Action | Purpose | |
---|---|---|
Step 1 | enable Example: Router> enable |
Enables privileged EXEC mode.
|
Step 2 | configure terminal Example: Router# configure terminal |
Enters global configuration mode. |
Step 3 | access-list access-list-number {deny | permit} source [source-wildcard] Example: Router(config)# access-list 1 permit 192.5.34.0 0.0.0.255 |
Shapes traffic according to specified access list.
|
Step 4 | interface type number Example: Router(config)# interface s4/0 |
Configures an interface (or subinterface) type and enters interface configuration mode.
|
Step 5 | traffic-shape group access-list bit-rate [burst-size [excess-burst-size]] Example: Router(config-if)# traffic-shape group 101 128000 |
Enables traffic shaping based on a specific access list for outbound traffic on an interface.
|
Step 6 | end Example: Router(config-if)# end |
Returns to privileged EXEC mode. |
Step 7 | show traffic-shape [interface-type interface-number] Example: Router# show traffic-shape serial4/0 |
(Optional) Displays the current traffic-shaping configuration. |
Step 8 | show traffic-shape statistics [interface-type interface-number] Example: Router# show traffic-shape statistics serial4/0 |
(Optional) Displays the current traffic-shaping statistics. |
Step 9 | exit Example: Router# exit |
(Optional) Exits privileged EXEC mode. |
Note |
Repeat the above procedure for each additional type of traffic you want to shape. |
11-14-2022 12:41 AM
You can create an ACL matching IP addresses, then apply that ACL to new class and then create a service policy to shape traffic from that class
11-14-2022
01:01 AM
- last edited on
11-22-2022
09:31 PM
by
Translator
as @Thomas Schmitt mentioned, you could use an ACL to shape traffic for traffic. I added an example you can use below.
There are different ways to do this, and if you want to test in a lab, check out this link on QoS on Cisco IOS:
1. enable
2. configure terminal
3. access-list access-list-number {deny | permit} source [source-wildcard]
4. interface type number
5. traffic-shape group access-list bit-rate [burst-size [excess-burst-size]]
6. end
7. show traffic-shape [interface-type interface-number]
8. show traffic-shape statistics [interface-type interface-number]
9. exit
Command or Action | Purpose | |
---|---|---|
Step 1 | enable Example: Router> enable |
Enables privileged EXEC mode.
|
Step 2 | configure terminal Example: Router# configure terminal |
Enters global configuration mode. |
Step 3 | access-list access-list-number {deny | permit} source [source-wildcard] Example: Router(config)# access-list 1 permit 192.5.34.0 0.0.0.255 |
Shapes traffic according to specified access list.
|
Step 4 | interface type number Example: Router(config)# interface s4/0 |
Configures an interface (or subinterface) type and enters interface configuration mode.
|
Step 5 | traffic-shape group access-list bit-rate [burst-size [excess-burst-size]] Example: Router(config-if)# traffic-shape group 101 128000 |
Enables traffic shaping based on a specific access list for outbound traffic on an interface.
|
Step 6 | end Example: Router(config-if)# end |
Returns to privileged EXEC mode. |
Step 7 | show traffic-shape [interface-type interface-number] Example: Router# show traffic-shape serial4/0 |
(Optional) Displays the current traffic-shaping configuration. |
Step 8 | show traffic-shape statistics [interface-type interface-number] Example: Router# show traffic-shape statistics serial4/0 |
(Optional) Displays the current traffic-shaping statistics. |
Step 9 | exit Example: Router# exit |
(Optional) Exits privileged EXEC mode. |
Note |
Repeat the above procedure for each additional type of traffic you want to shape. |
11-14-2022 10:40 AM - edited 11-14-2022 01:57 PM
BTW, do take note this is for IOS Release 15M&T.
I recall (?) on some later ISRs finding GTS no longer provided on interfaces. Needed to use CBWFQ's traffic shaping. Which interestingly, in the referenced document has the note:
GTS is similar to Class-Based Traffic Shaping. Although Class-Based Traffic Shaping is the Cisco-recommended mechanism, GTS is still supported.
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