May 2017
Beginner
552 pages
28h 47m
English
The ifconfig command displays details of every active network interface available on the system. However, we can restrict it to a specific interface using the following command:
$ ifconfig iface_name
Consider this example:
$ ifconfig wlan0 wlan0 Link encap:EthernetHWaddr 00:1c:bf:87:25:d2 inet addr:192.168.0.82 Bcast:192.168.3.255 Mask:255.255.252.0 inet6 addr: fe80::3a2c:4aff:6e6e:17a9/64 Scope:Link UP BROADCAST RUNNINT MULTICAST MTU:1500 Metric:1 RX Packets...
To control a device, we need the IP address, broadcast address, hardware address, and subnet mask: