使用ifconfig或者ip命令
# /sbin/ifconfig
在Systemd系统上,我们可以尝试使用root执行:
# ip addr show
如果我们知道网络接口的名称,我们也可以使用它作为具有“ifconfig命令”的参数,例如:
$/sbin/ifconfig eth0
如果我们使用的是无线网络接口,网络接口名称可能是WLAN0:
$/sbin/ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 8c:70:5a:92:f6:e0
inet addr:10.1.1.78 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::8e70:5aff:fe92:f6e0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24557 errors:0 dropped:0 overruns:0 frame:0
TX packets:18095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17493073 (17.4 MB) TX bytes:3226275 (3.2 MB)
日期:2020-07-07 20:56:18 来源:oir作者:oir
