通过Linux 系统性能监控命令,显示网络接口列表命令和输出结果;
时间: 2024-03-09 20:46:49 浏览: 56
Linux系统管理+网络监控命令.docx
可以使用 `ifconfig` 命令来显示系统中的网络接口列表和对应的配置信息,如下所示:
```
ifconfig -a
```
输出结果会列出所有的网络接口信息,包括接口名称、MAC地址、IP地址、子网掩码、广播地址等等。例如:
```
eth0 Link encap:Ethernet HWaddr 00:16:3e:0d:28:9f
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe0d:289f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5000 errors:0 dropped:0 overruns:0 frame:0
TX packets:4000 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5000000 (5.0 MB) TX bytes:4000000 (4.0 MB)
Interrupt:16 Memory:d0200000-d0220000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1000 errors:0 dropped:0 overruns:0 frame:0
TX packets:1000 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1000000 (1.0 MB) TX bytes:1000000 (1.0 MB)
```
阅读全文