dcb-maxrate - Linux
Overview
dcb-maxrate modifies the Data Center Bridging (DCB) maximum transmit data rate for a data interface. DCB is a set of IEEE standards designed to enhance the quality and efficiency of network transmissions in data center environments.
Syntax
dcb-maxrate [--help] [-q] [--quiet] [-v] [--version]
[--maxrate RATE] <IFACE>
Options/Flags
- –maxrate RATE: Set the maximum transmit rate in Mbit/s, V/G/P bit/s, or percent.
- -q, –quiet: Suppress normal output; if this is the only argument, then the current setting is displayed.
- -v, –version: Print the program’s version number.
- –help: Display help and exit.
Examples
Display current maxrate:
$ dcb-maxrate -q eth0
Set maxrate to 5 Gbit/s:
$ dcb-maxrate --maxrate 5G eth1
Disable maxrate:
$ dcb-maxrate --maxrate 0 eth2
Common Issues
- Permission denied: Ensure you have sufficient privileges (e.g., root) to modify DCB settings.
- DCB not supported: Verify that your network interface supports and has DCB enabled.
- Invalid rate value: Use valid units (Mbit/s, V/G/P bit/s, or percent) and ensure the value is within the interface’s capabilities.
Integration
Set maxrate with iproute2:
$ ip link set dev eth0 txqueuelen 1000 tc qdisc add dev eth0 root tbf rate 2Gbit burst 4096 limit 65535
Related Commands
- ethtool – Configure Ethernet devices
- ifconfig – Display or configure network interface parameters
- tc – Traffic control utility