Wired Intelligent Edge

 View Only
  • 1.  Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port

    Posted Sep 30, 2026 06:04 AM
    Edited by CS-pJi358 Oct 01, 2026 04:12 AM

    Hi all,

    I have a situation where I have a number of trunk ports, and on each trunk port there are a number of VLANs configured (that's why they're trunks...)

    For any given VLAN, I may want to apply an inbound and outbound rate limit of 20Mbps, 50Mbps or 100Mbps.

    These trunk ports connect to a different physical interfaces of a firewall. On this firewall, sub-interfaces are created corresponding to the VLAN tagging of the trunks on the 6300M switch.

    I have created a class and policies as follows:

    class ip CLASS-MATCH-ANY
        10 match any any any

    policy POLICY-VLAN-RATE-LIMIT-100MBPS
        10 class ip CLASS-MATCH-ANY action cir kbps 100000 cbs 4161500 exceed drop
    policy POLICY-VLAN-RATE-LIMIT-20MBPS
        10 class ip CLASS-MATCH-ANY action cir kbps 20000 cbs 1250304 exceed drop
    policy POLICY-VLAN-RATE-LIMIT-50MBPS
        10 class ip CLASS-MATCH-ANY action cir kbps 50000 cbs 3125760 exceed drop

    And I have done the VLAN configuration as follows (these are examples, not the full list):

    vlan 29
        name xxxxx
        apply policy POLICY-VLAN-RATE-LIMIT-20MBPS in
        apply policy POLICY-VLAN-RATE-LIMIT-20MBPS out

    vlan 61
        name yyyyy
        apply policy POLICY-VLAN-RATE-LIMIT-100MBPS in
        apply policy POLICY-VLAN-RATE-LIMIT-100MBPS out

    vlan 74
        name zzzzz
        apply policy POLICY-VLAN-RATE-LIMIT-50MBPS in
        apply policy POLICY-VLAN-RATE-LIMIT-50MBPS out

    And one of the trunk ports is configured as follows:

    interface 1/1/3
        description ***Uplink to firewall eth******
        no shutdown
        no routing
        vlan trunk native 1
        vlan trunk allowed 29,61,74
        rate-limit broadcast 3000 pps
        spanning-tree bpdu-guard
        spanning-tree port-type admin-edge

    There are 2 more trunk ports with different VLANs, and each of those VLANs again may have different rate limits configured: 20, 50 or 100Mbps, in the same way as above.

    My specific problem is that I have no way of telling the following:

    1. Is this valid as a configuration - the switch doesn't complain about it at any stage
    2. Is this actually giving 20Mbps to each individual VLAN where that policy is applied (and likewise for 50Mbps and 100Mbps) or is it sharing the policy bandwidth across all VLANs with that policy applied?
    3. Is it even possible to configure a rate-limit on a per-VLAN basis?

    Thanks in advance,

    ChrisSW.



  • 2.  RE: Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port
    Best Answer

    Posted Sep 30, 2026 07:34 AM

    The config is valid, and per VLAN is the right place for it, but I wouldn't count on each VLAN getting its own 20 Mbps. The AOS-CX Classifier Policies Guide page on apply policy says the default is to share a policy across everything it's applied to, and the per-interface keyword that splits the policers only exists on ports and LAGs, not in the VLAN context: https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/acls_6300-6400-8100-8360/Content/Chp_Cls_Pol/Cls_Pol_cmds/app-pol-int-vla-vla-int-con.htm

    So every VLAN on the 20 Mbps policy can end up drawing from one bucket. The safe fix is one policy per VLAN (policy copy makes that quick), so each VLAN gets its own policer. Also, class ip only matches IPv4, and traffic no entry matches passes untouched, so add class ipv6 and class mac entries if you want everything capped.

    The out direction is the other thing to check, because the guide describes policing as metering inbound traffic: https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/acls_6300-6400-8100-8360/Content/Chp_Cls_Pol/typ-pol-act.htm. Run show policy hitcounts <policy> vlan 29 in, then out, while you push traffic, and you'll see what's actually being dropped.



    ------------------------------
    Dustin Burns
    @Worldcom Exchange, Inc.
    www.wei.com

    - - -
    The comments I post here are my own, and not my employers
    If my post was useful accept solution and/or give kudos
    Personal Blog: www.networkfieldnotes.com
    - - -
    ------------------------------



  • 3.  RE: Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port

    Posted Sep 30, 2026 10:37 AM

    Thank you Dustin

    Since I wrote the post it has become clear to us that using the same policy on every VLAN does indeed share the allocated bandwidth across all VLANs, hence all the complaints from users!

    As a result, I've given each VLAN its own individual policy, and applied it both inbound and outbound in the VLAN configuration. Despite your reservations about it working only in the inbound direction, "show policy hitcount" suggests that it does in fact work both ways

    class ip CLASS-MATCH-ANY

        10 match any any any

    #

    policy POLICY-VLAN76-20MBPS

        10 class ip CLASS-MATCH-ANY action cir kbps 20000 cbs 1250304 exceed drop

    #

    vlan 76

        name **********

        apply policy POLICY-VLAN76-20MBPS in

        apply policy POLICY-VLAN76-20MBPS out

    #

    SWITCH-6300M# show policy hitcounts POLICY-VLAN76-20MBPS

    vlan 76 (in):

         Matched Packets  Configuration

    10 class ip CLASS-MATCH-ANY action cir kbps 20000 cbs 1250304 exceed drop  [ 6120 kbps conform ]

                       -  10 match any any any

    vlan 76 (out):

         Matched Packets  Configuration

    10 class ip CLASS-MATCH-ANY action cir kbps 20000 cbs 1250304 exceed drop  [ 4133 kbps conform ]

                       -  10 match any any any

    However, even when the utilisation figure shows something higher that 20Mbps, it still says e.g. "22000 kbps conform", where I had expected some kind of reference to drop rate as well. But in any case, speed tests do show that the allocated bandwidth is being enforced correctly.

    Thanks for the hints about "class ip" hitting only IPv4. As and when we start using IPv6 then I can revisit the policies, although there will be a decision to be made about how we would allocate bandwidth across both IPv4 and IPv6, given that they need different classification.

    Regards,

    ChrisSW.




  • 4.  RE: Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port

    Posted Sep 30, 2026 11:39 AM

    Good to hear it, and thanks for posting the hitcounts, because they settle the out direction: a VLAN policy on the 6300 polices egress too, so my caution there was wrong.

    The 22000 kbps conform figure most likely isn't the policer failing. The Types of policy actions page puts the drop point at the CIR plus the CBS, not the CIR alone: https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/acls_6300-6400-8100-8360/Content/Chp_Cls_Pol/typ-pol-act.htm. Your CBS of 1250304 bytes is about half a second of traffic at 20 Mbps, so short bursts can run over before anything drops, and a sampled rate catches them. Your speed tests are the better proof, and they agree.

    For IPv6 later, a class ipv6 entry with its own cir should be a second bucket next to the IPv4 one, not a share of it. Splitting the budget (say 15 and 5 Mbps) is the simple route. I'd lab a single shared bucket for both before trusting it.



    ------------------------------
    Dustin Burns
    @Worldcom Exchange, Inc.
    www.wei.com

    - - -
    The comments I post here are my own, and not my employers
    If my post was useful accept solution and/or give kudos
    Personal Blog: www.networkfieldnotes.com
    - - -
    ------------------------------



  • 5.  RE: Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port

    Posted Oct 07, 2026 09:33 AM

    Chris, did the CIR plus CBS explanation square with what you're seeing on VLAN 76? If you'd like the conform figure to sit nearer 20 Mbps, try a smaller cbs on that one policy and watch the hitcounts again. If it's all sorted, marking the reply that helped as the solution would point the next person straight to it.



    ------------------------------
    Dustin Burns
    @Worldcom Exchange, Inc.
    www.wei.com

    - - -
    The comments I post here are my own, and not my employers
    If my post was useful accept solution and/or give kudos
    Personal Blog: www.networkfieldnotes.com
    - - -
    ------------------------------



  • 6.  RE: Aruba 6300M (JL660A) per-vlan rate limiting on a tunk port

    Posted Oct 07, 2026 10:26 AM
    Edited by CS-pJi358 Oct 07, 2026 10:26 AM

    Hi Dustin

    I've marked your first answer as "best" although there is nothing visible on the answer itself to let everyone know. At least nothing that I can see.

    (EDIT) Sorry, there is in fact at link at the top of the page to jump to the best answer.