ifconfig parametre
Brug
Bruges til at se eller ændre netværk informationer.
Parametre
-a Viser alle interfaces.
-s Kort liste
-v Viser flere fejl hvis der er fejl.
Eksempler
$ ifconfig -a
enp5s0 Link encap:Ethernet HWaddr 14:da:e9:4c:4e:84 inet addr:192.168.0.73 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::1cef:fcfe:8a79:1234/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:42649828 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063713 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:41558882292 (41.5 GB) TX bytes:53364694687 (53.3 GB) Interrupt:18 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:253208830 errors:0 dropped:0 overruns:0 frame:0 TX packets:253208830 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:87133106066 (87.1 GB) TX bytes:87133106066 (87.1 GB)
Den korte version.
$ ifconfig -s Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg enp5s0 1500 0 42651080 0 0 0 14064334 0 0 0 BMRU lo 65536 0 253236203 0 0 0 253236203 0 0 0 LRU