cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
875
Views
0
Helpful
0
Replies

rate-limit command on sub interface

SAM MUNZANI
Level 1
Level 1

Hi,

I have following configuration on the router.

int g0/1
desc Customer # 1. Need to rate limit to 100Mbps bandwidth of internet connection

interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip addr y.y.a.a 255.255.255.192

interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip addr y.y.a.a 255.255.255.192

int g0/2
ip addr x.x.x.1 255.255.255.192
Other internal subnets, DMZ and some other customers

int g0/3
ip addr y.y.y.1 255.255.255.252
descr ISP facing interface

ip route 0.0.0.0 0.0.0.0 y.y.y.2

Scenario:
2 customers are connected via sub interface 10 and 20. 9 other customers connected via g0/2. Static routes are there in place to route to those customers via G0/2.

ISP connection is gigabit but I need to give 100Mbps to customer # 1 that is connected to g0/1.10. What's best way to achieve it? I need rate limiting in both directions.

Below is what I came up with that uses rate-limit commands and the router already took my commands. However none of the Cisco examples show sub interfaces so is it supposed to work with sub interfaces at all? OR I have to do rate-limit with ACL on main interface?

interface GigabitEthernet0/1.10
rate-limit input  100000000 18750000 37500000 conform-action transmit exceed-action drop
rate-limit output 100000000 18750000 37500000 conform-action transmit exceed-action drop
!

Thanks in advance,

 

 

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card