No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei IN200 NIC User Guide 06

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Standard Management Tools

Standard Management Tools

The ethtool, ifconfig, ip link, vconfig, and dcbtool tools are standard NIC management tools delivered with the Linux system. They can be used to configure and manage the IN200 because the IN200 is a standard PCIe card.

Table 6-2 lists the common ethtool commands supported by the IN200 and their functions. For details about how to use the commands, see the help information provided on the command-line interface (CLI).

Table 6-2 Common ethtool commands

Command

Function

ethtool ethx

Displays the basic settings of a specified Ethernet port.

ethtool -s ethx

Sets the auto-negotiation mode and network port rate of a specified Ethernet port.

NOTE:

If DAC cables are used to connect IN200 ports and auto-negotiation is disabled on the peer device, run the ethtool -s ethx autoneg off command to disable auto-negotiation on the corresponding IN200 port.

ethtool -a ethx

Displays the pause status of a specified Ethernet port.

ethtool -A ethx

Sets the pause status of a specified Ethernet port.

ethtool -c ethx

Displays the interrupt aggregation parameter of a specified Ethernet port.

ethtool -C ethx

Configures the interrupt aggregation parameter of a specified Ethernet port.

ethtool -g ethx

Displays queue depth information of a specified Ethernet port.

ethtool -G ethx

Configures queue depth information of a specified Ethernet port.

ethtool -k ethx

Displays the offload and acceleration features supported by the NIC.

ethtool -K ethx

Configures the offload and acceleration features supported by the NIC.

ethtool -i ethx

Displays related information of a specified Ethernet port.

ethtool -t ethx

Runs a loopback test.

ethtool -S ethx

Displays hardware and drive statistics.

ethtool -n ethx

Displays the Receive Side Scaling (RSS) rule currently supported by a specified network port.

ethtool -N ethx

Configures the RSS rule.

ethtool -x ethx

Query the indirect table.

ethtool -X ethx

Configures the indirect table.

ethtool -P ethx

Displays the fixed MAC address.

ethtool -l ethx

Queries the number of queues.

ethtool -L ethx

Configures the number of queues.

Some ethtool standard commands are not applicable to an IN200, and their functions are substituted by hinicadm. For example:

  • ethtool -e: provides the eeprom burning function, which is used in NIC firmware update. For an IN200, ethtool -e is substituted by the updatefw command of hinicadm.
  • ethtool -d: provides the chip register dump function, which is used to collect chip location information. For an IN200, ethtool -d is substituted by the hilink_dump command of hinicadm.

Table 6-3 lists the common ifconfig commands supported by the IN200 and their functions. For details about how to use the commands, see the help information provided on the CLI.

Table 6-3 Common ifconfig commands

Command

Function

ifconfig ethx hw

Configures the NIC address.

ifconfig ethx mtu

Configures the network port MTU.

ifconfig ethx [-]allmulti

Enables or disables the full multicast feature.

ifconfig ethx [-]promisc

Enables or disables the promiscuous mode.

Table 6-4 lists the common ip link commands supported by the IN200 and their functions. For details about how to use the commands, see the help information provided on the CLI.

Table 6-4 Common ip link commands

Command

Function

ip link set dev ethx vf <num> <mac addr>

Sets the MAC address of the virtual network port.

ip link set devethx vf <num> vlan <vlan_id> qos <vlan-qos>

Sets the VLAN ID and QoS priority of the virtual network port.

ip link set dev ethx vf <num> <rate txrate>

Sets the rate limit parameter of the virtual network port.

ip link set dev ethx vf <num> state <staus>

Sets the link status of the virtual network port.

Table 6-5 lists the common vconfig commands supported by the IN200 and their functions. For details about how to use the commands, see the help information provided on the CLI.

Table 6-5 Common vconfig commands

Command

Function

vconfig add ethx <vlan_id>

Adds a VLAN sub-device.

vconfig rem <vlan-name>

Deletes a VLAN sub-device.

Table 6-6 lists the common dcbtool commands supported by the IN200 and their functions. For details about how to use the commands, see the help information provided on the CLI.

Table 6-6 Common dcbtool commands

Command

Function

dcbtool sc ethx dcb on/off

Enables or disables Data Center Bridgin (DCB).

dcbtool gc ethx dcb

Queries the DCB status.

dcbtool gc ethx pg

Queries the priority group settings.

dcbtool sc ethx pg pgid:xxx

Specifies the priority bandwidth group to which a specified priority is mapped.

dcbtool sc ethx pg pgpct:x,x,x,x,x,x,x,x

Specifies the bandwidth ratio of each priority bandwidth group (the sum is 100%).

dcbtool sc ethx pg strict:xxxxxxxx

Sets a specified priority to strict.

dcbtool sc ethx pg up2tc:xxxxxxxx

Specifies the TC group to which each priority is mapped.

dcbtool gc ethx pfc

Queries the PFC status of each priority.

dcbtool sc ethx pfc pfcup:xxxxxxxx

Specifies the PFC enablement status of each priority.

Translation
Download
Updated: 2019-07-30

Document ID: EDOC1100063073

Views: 8124

Downloads: 45

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next