In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "Kali Linux commonly used service configuration tutorial installation and configuration of DHCP service". In daily operation, I believe that many people have doubts about the installation and configuration of DHCP service in the commonly used service configuration tutorial of Kali Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "Kali Linux common service configuration tutorial installation and configuration DHCP service". Next, please follow the editor to study!
Kali Linux Common Service configuration tutorial installation and configuration of DHCP Service
In Kali Linux, the DHCP service is not installed by default. The following describes how to install and configure the DHCP service.
1. Install the DHCP service
In Kali Linux, the installation package used to provide DHCP services is called isc-dhcp-server. So, execute the command as follows:
Root@daxueba:~# apt-get install isc-dhcp-server-y
After executing the above command, the installation of the DHCP service will begin. If no errors are reported during installation, the service will be successfully installed into the system.
two。 Configure the DHCP service
When the DHCP service is installed, it needs to be started to play its role. However, if you want to start the DHCP service, you need to do some simple configuration, such as address pool, default gateway, DNS server address, and so on. Where the default master configuration file for DHCP services on Kali systems is / etc/dhcp/dhcpd.conf. Users only need to make the appropriate configuration in this file. You can configure it directly in the original file, or you can delete everything in the file and save only what you need. Note that for security reasons, if changes are made to the original file, it is best to make a backup of the original file before the operation. For example, add a configuration for the 192.168.0.0 network segment as follows:
Root@daxueba:~# vi / etc/dhcp/dhcpd.conf
Ddns-update-style none; # dynamic DNS update mode
Authoritative
Default-lease-time 600; # DHCP lease time
Max-lease-time 7200; # DHCP maximum lease time
Subnet 192.168.0.0 netmask 255.255.255.0 {# the network segment to which the DHCP service assigns addresses
Range 192.168.0.10 192.168.0.20; # address pool
Option subnet-mask 255.255.255.0; # subnet mask
Option routers 192.168.0.1; # default gateway
Option broadcast-address 192.168.0.255; # broadcast address
Option domain-name-servers 192.168.0.1; # address of the DNS server
}
The above configuration information indicates that an address pool for the 192.168.0.0 network segment is configured. Where the default gateway is 192.168.0.1; the DNS server address is 192.168.0.1; the address pool used for allocation is 192.168.0.10-20. Note: the subnet information configured here should be on the same network segment as the address of one of the network interfaces in the host.
Tip: if users fake AP to assign addresses with their own DHCP services, the configured DHCP service network segment should be in the same network segment as the IP address of the wireless interface. For example, if the IP address in the system host is 192.168.1.100, the specified network segment is 192.168.1.0.
At this point, on the "Kali Linux commonly used service configuration tutorials installation and configuration of DHCP services" study is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.