Код PHP:
ifconfig inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9713502 errors:0 dropped:225 overruns:0 frame:0 TX packets:4209220 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14260853327 (14.2 GB) TX bytes:247280073 (247.2 MB)
Код PHP:
sudo ethtool enp2s1 | grep "Speed\|Duplex" Speed: 1000Mb/s Duplex: Full