dcb-apptrust - Linux
Overview
dcb-apptrust is a utility for managing data center bridging (DCB) application trust levels on network devices. DCB is a set of Ethernet standards that aim to optimize network performance for data center applications. Application trust levels define the level of priority given to specific types of traffic.
Syntax
dcb-apptrust [options] <command> <arguments>
Options/Flags
- -h, –help: Display the help message and exit.
- -v, –version: Print the program version and exit.
- -d, –device: Specify the network device to configure (e.g., eth0).
Commands
set: Set the application trust level for a specified class
- Syntax:
set <class> <trust-level>
- Example:
set 1 2
(Sets class 1 to trust level 2)
get: Get the application trust level for a specified class
- Syntax:
get <class>
- Example:
get 1
(Gets the trust level for class 1)
Examples
Configure the trust level for a specific class:
dcb-apptrust set 1 2
Get the trust level for a specific class:
dcb-apptrust get 1
Common Issues
- Trust level not recognized: Ensure the provided trust level is valid (0-3).
- Device not supported: Check that the specified device supports DCB and application trust level configuration.
Integration
In combination with TC: dcb-apptrust can be used alongside the tc command to configure traffic control rules based on the application trust levels.
dcb-apptrust set 1 2
tc filter add dev eth0 ingress protocol ip prio 1 u32 match u32 0 0 flowid 1:1
Related Commands
- tc: Traffic control utility
- ethtool: Network device configuration tool