dcb-dcbx - Linux
Overview
dcb-dcbx enables the configuration of Data Center Bridging (DCB) Data Center Bridging Exchange (DCBX) features for DCB-compliant network interface controllers (NICs). DCB is a set of IEEE 802.1Q standards that enhance network performance and efficiency in data centers.
Syntax
dcb-dcbx [options] interface
Options/Flags
- -e, –enable: Enable DCBX on the specified interface.
- -d, –disable: Disable DCBX on the specified interface.
- -s, –status: Show the status of DCBX on the specified interface.
- -E, –enable-feature: Enable the specified DCBX feature. Available features are:
- Priority Groups (PG)
- Bandwidth Allocation (ETS)
- Congestion Notification (CN)
- Enhanced Transmission Selection (ETS)
- -D, –disable-feature: Disable the specified DCBX feature.
- -c, –cnp-p: Set the CNP priority for the specified interface.
- -a, –aggregated-bw: Set the aggregated bandwidth for ETS in Mbps.
- -m, –max-bw: Set the maximum bandwidth for a priority group in Mbps.
- -i, –interface: Specify the network interface to configure.
- -v, –verbose: Enable verbose output.
- -h, –help: Print usage help.
Examples
Enable DCBX on an interface:
dcb-dcbx -e eth0
Disable DCBX on an interface:
dcb-dcbx -d eth0
Show DCBX status on an interface:
dcb-dcbx -s eth0
Enable ETS feature on an interface:
dcb-dcbx -E ETS eth0
Disable PG feature on an interface:
dcb-dcbx -D PG eth0
Common Issues
- Ensure the network interface supports DCB before using this command.
- Some features may not be supported on all network adapters.
- Incorrect configuration can lead to performance issues.
Integration
dcb-dcbx can be combined with other Linux commands and tools, such as:
- ifconfig: To view network interface settings.
- ethtool: To configure low-level NIC features.
- tc: To configure traffic control rules.
Related Commands
- ethtool
- tc
- DCB How-to Wiki
- Linux DCB Documentation