In this article I introduce a few very useful and network-related commands
I. Ifconfig
This command is "translated to ipconfig" under windows and is used to display details such as network interfaces, subnet masks, and so on.
Note: In each system, the default is Lo, which is called the loopback interface, and this interface points to the current host itself.
Ifconfig the left column is the network interface name, which occupies 10 bytes, and several columns on the right display the details of the corresponding network interface.
The screenshot below is the information displayed after running this command on the blogger's computer:
Related skills
1. Print Network interface list
Ifconfig | Cut-c-10 | Tr-d ' | Tr-s ' \ n '
Description: The first 10 bytes of the ifconfig output display the network interface name, so we use the Cut command to extract the first 10 characters of each row.
The screenshot of the run is shown below:
This article URL address: http://www.bianceng.cn/OS/Linux/201410/45412.htm
2. Hardware address (MAC address) spoofing
In some cases, it is necessary to use the hardware address to authenticate or filter computers on the network, in which case we can use the hardware address spoofing
The order is as follows:
ifconfig eth0 hw ether 00:1c:bf:87:25:d5
Let's run the next look at the results:
Note: This command needs to use root permissions