用python获取MAC地址和IP地址
# ifconfig eth0eth0 Link encap:EthernetHWaddr 50:E5:49:3A:EA:90
inet addr:172.28.10.71Bcast:172.28.10.255Mask:255.255.255.0
inet6 addr: fe80::52e5:49ff:fe3a:ea90/64 Scope:Link
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:3457606 errors:0 dropped:0 overruns:0 frame:0
TX packets:255283 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:503195543 (479.8 MiB)TX bytes:30327237 (28.9 MiB)
页:
[1]