Link to home
Start Free TrialLog in
Avatar of Yardstick
Yardstick

asked on

How to rate limit on a Juniper router acting as just a router?

Hi,

We have a Juniper SRX210 router configured for for BGP routing for our Telco's Fibre internet install. It is configured as per:
https://www.experts-exchange.com/questions/28243494/How-to-configure-a-Juniper-SRX210-as-a-client-gateway-using-BGP.html
(much thanks to dpk_wal) That Question should have all the details of the config, including the final config that got it working. BUt I can post it again if needed.

One important point, it is acting as a router:
set security forwarding-options family mpls mode packet-based
(no NAT, and I think it defaults to allowing all traffic, which is what we want -- we use the Juniper only as a router, we have our own company Firewall)

I checked with the ISP and the correct settings are 100Mbps / Full Duplex, so I added:
set interfaces ge-0/0/0 speed 100m
set interfaces ge-0/0/0 link-mode full-duplex
set interfaces ge-0/0/0 gigether-options no-auto-negotiation

And it is now running very well, burstable up to nearly 100Mbps up and down!

However we get charged if our usage goes over 10Mbps. We connect through a SonicWALL NSA 240 (which connects to the ge-0/0/1 interface). Because we have multiple WAN ISPs on the SonicWALL it isn't able to accurately do Bandwidth Management -- it seems to combine them or go with only the primary WAN, etc.

How can we limit the rate/speed of the Fibre internet on the Juniper SRX210 to, say, 9.75Mbps? (to avoid any over charges) But sometimes we may want to adjust it to, say, 20Mbps if we needed to download something or push up a large update. So that it could be flexible if needed (ie. NOT just changing ge-0/0/1 to 10Mbps)
We need to be able to limit both inbound/outbound (upload/download) bandwidth.

Can this be done? So that we can set max the upload/download limits, and optionally change them if we have a business case to allow more or less in the future?

Thanks so much!
ASKER CERTIFIED SOLUTION
Avatar of hypercube
hypercube
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Yardstick
Yardstick

ASKER

Soloution wasn't specific but did point me in the direction I needed to go. I was able to create the initial (working) rules with J-WEB but I didn't (and I still don't) understand exactly what it is all doing (as noted, the documentation is fairly poor) but it works. Thanks.