Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
After Kali Linux is installed, its network needs to be configured. Many people don't know how to configure the network. This article uses the static IP of the campus network as an example to introduce the network configuration method of Kali Linux. Let's follow the editor of Huajun to learn about the network configuration method of Kali Linux. .
After kali is installed, first determine whether you have DHCP or static IP. DHCP is a protocol used to dynamically allocate IP addresses to large networks. However, most small and medium-sized networks (such as campus networks and home networks) use the method of manual allocation of static IP addresses by network administrators to determine IP addresses.
1. Find the interfaces file under /etc/network in the file system. After opening it, you can see that eth0 is dhcp. Modify it to the following form:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
autoeth0
iface eth0 inet static //Configure eth0 to use the default static address
address 192.168.77.133 //Set the IP address of eth0
netmask 255.255.255.0 //Configure the subnet mask of eth0
gateway 192.168.77.254 //Configure the default gateway of the current host
There are many other settings in the "interfaces" file. If you need to know more information, you can use the man command to query the man page of the "interfaces" file.
#maninterfaces
Among them, eth0 refers to the local Ethernet card 1. Similarly, eth1 refers to the local Ethernet card 2. Generally, a computer only has one eth0. The device name of the network card /dev/eth0 corresponds to the hardware MAC address 52:54:AB:DD:6F:61. The MAC address is determined by the manufacturer and is a unique address owned by each network card.
Under Linux, after using ifconfig, you can see eth0, and you may also see eth0:1. Among them, eth0:1 refers to the divided IP storage file of eth0. The divided IP storage file format is ifcfg-eth0:X, X is any positive integer (including 0)
The specific function is to realize multiple IPs on a single network card, similar to the multiple IPs in Windows.
2. Configure DNS
The DNS server address of Kali Linux is configured using the file "/etc/resovl.conf". Users can set the IP address of the DNS server through the "nameserver" configuration item; the "resolv.conf" file can use up to
"nameserver" specifies 3 DNS servers in order. Once the previous DNS server fails, the system will automatically use the later DNS server.
Modifications to the "nameserver" settings in the "resolv.conf" file are effective immediately, that is, as long as the modifications to the "resolv.conf" file are saved, the next time the system needs to resolve the domain name, it will be as specified in the file.
DNS server IP address for domain name resolution.
The format in resolv.conf is as follows:
domain
nameserver 10.10.10.10
nameserver 102.54.16.2
3. Restart the network
Save after completing the previous steps, and then restart the network in the terminal. The command is as follows: /etc/init.d/networking restart
After that, open the browser and download and log in to the client on the school network to access the Internet!
The above is the editor’s summary of the network configuration method after Kali Linux is installed. This method is only applicable to the school network. If it is other networks, it can be used as a reference. Hurry up and give it a try. I hope the method summarized by Huajun editor can help everyone!
How to set up Xunlei video playback associated with Xunlei Video - Xunlei set up video playback associated with Xunlei Video tutorial
How to create a new group in Xunlei - How to create a new group in Xunlei
How to transcode qq music to mp3 qq music transcoding method
How to enable Thunder P2P acceleration function in Thunder 11 How to enable Thunder P2P acceleration function in Thunder 11
How to connect Xunlei to Xunlei server - How to connect Xunlei to Xunlei server
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow