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).
Checking Network Device Information (ifconfig)
Function
The ifconfig command is used to check network device information.
Format
See the syntax of the ifconfig command of Linux.
Parameters
This command supports the following parameters:
- lo
- ethn (n indicates a network port number)
- -a
This command can also be used without parameters.
Usage Guidelines
None
Example
iBMC:/->ifconfig eth1 eth1 Link encap:Ethernet Addr inet6 addr: fe80::218:82ff:fe11:321/64 Scope:Link UP BROADCAST DEBUG RUNNING MTU:1500 Metric:1 RX packets:28 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1832 (1.7 KiB) TX bytes:2558 (2.4 KiB) Interrupt:28