You can use Quality of Service (QoS) traffic shaping parameters to limit the bandwidth for all the NSX-T NAT IPs in a virtual datacenter.
Privileges: Manage NAT bandwidth limit
When you create a virtual datacenter, the new natbandwidthlimit
attribute is present but you must edit the virtual datacenter to activate it in the platform and in the NSX-T.
To edit the bandwidth limit and apply it in the NSX-T:
Select the virtual datacenter
Go to Network → QoS
Click the pencil edit button
The Provider ID will identify the virtual datacenter
To activate the bandwidth limit in a specific direction, select the Enabled checkbox for that direction
Set QoS values for your virtual datacenter. Be sure to allow enough bandwidth to share between all the NAT IPs in the virtual datacenter.
For the Average enter the the average amount of bandwidth, in bits per second, that the virtual datacenter can use
For the Peak enter the maximum bandwidth in bits per second that the virtual datacenter can use
For the Burst size enter the amount of data that can be transmitted at the peak bandwidth rate in bytes. A burst bonus accumulates when traffic is below the Average value and this bandwidth can be used for bursts.
To register changes that were made outside the platform, save the existing NAT bandwidth values. In the API, to register changes, send a POST request with the existing values.