ifconfig
enp0s31f6 Link encap:Ethernet HWaddr b4:2e:99:29:40:e0
inet addr:172.20.111.172 Bcast:172.20.111.255 Mask:255.255.255.0
inet6 addr: 2001:250:3c02:74b:6894:2e06:1031:588a/64 Scope:Global
inet6 addr: 2001:250:3c02:74b:2f62:6fc1:c165:cf41/64 Scope:Global
inet6 addr: fe80::8b6e:1291:d9e3:504c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2039 errors:0 dropped:0 overruns:0 frame:0
TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:171559 (171.5 KB) TX bytes:24920 (24.9 KB)
Interrupt:16 Memory:f7100000-f7120000
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:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21365 (21.3 KB) TX bytes:21365 (21.3 KB)
root@wenyu-B250M-D3H:~# ifconfig?
No command ‘ifconfig?’ found, did you mean:
Command ‘ifconfig’ from package ‘net-tools’ (main)
ifconfig?: command not found
root@wenyu-B250M-D3H:~# ifconfig help
help: error fetching interface information: Device not found
root@wenyu-B250M-D3H:~# ifconfig -help
Usage:
ifconfig [-a] [-v] [-s] [[]
[add [/]]
[del [/]]
[[-]broadcast []] [[-]pointopoint []]
[netmask ] [dstaddr ] [tunnel ]
[outfill ] [keepalive ]
[hw ] [metric ] [mtu ]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start ] [io_addr ] [irq ] [media ]
[txqueuelen ]
[[-]dynamic]
[up|down] …
=Hardware Type.
List of possible hardware types:
loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
ash (Ash) ether (Ethernet) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
irda (IrLAP) ec (Econet) x25 (generic X.25)
eui64 (Generic EUI-64)
=Address family. Default: inet
List of possible address families:
unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
ash (Ash) x25 (CCITT X.25)
root@wenyu-B250M-D3H:~# ifconfig en*
en*: error fetching interface information: Device not found
root@wenyu-B250M-D3H:~# ifconfig en
en: error fetching interface information: Device not found
root@wenyu-B250M-D3H:~# ifconfig enp0s31f6
enp0s31f6 Link encap:Ethernet HWaddr b4:2e:99:29:40:e0
inet addr:172.20.111.172 Bcast:172.20.111.255 Mask:255.255.255.0
inet6 addr: 2001:250:3c02:74b:6894:2e06:1031:588a/64 Scope:Global
inet6 addr: 2001:250:3c02:74b:2f62:6fc1:c165:cf41/64 Scope:Global
inet6 addr: fe80::8b6e:1291:d9e3:504c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3531 errors:0 dropped:0 overruns:0 frame:0
TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:283605 (283.6 KB) TX bytes:27158 (27.1 KB)
Interrupt:16 Memory:f7100000-f7120000
root@wenyu-B250M-D3H:~#