Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Kali Linux common services and obtain IP address

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to configure Kali Linux common services and obtain IP addresses. The content is concise and easy to understand. It will definitely make you shine. I hope you can gain something from the detailed introduction of this article.

Kali Linux common services configuration tutorial Get IP address

Here is an example of how to get an IP address using Kali Linux

(1) Set the network interface to automatically acquire IP addresses. Clicking the icon in the Favorites section of Kali Linux will display all the programs, as shown in Figure 1.8.

(2) Click the "Settings" icon to open the "Settings" window, as shown in Figure 1.9.

(3) Select "Network" option, click the gear button in wired connection, and the "Wired" dialog box will be displayed, as shown in Figure 1.10.

(4) Check the "Auto Connect" checkbox. Then, click on the IPv4 tab, which displays the IPv4 tab, as shown in Figure 1.11.

(5) Select the "Automatic (DHCP)" option on this interface. Then click the Apply button. Next, you can request an IP address. Execute the command as follows:

root@daxueba:~# dhclient eth0 -d

Internet Systems Consortium DHCP Client 4.3.5

Copyright 2004-2016 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:0c:29:25:89:95

Sending on LPF/eth0/00:0c:29:25:89:95

Sending on Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4

DHCPREQUEST of 192.168.0.12 on eth0 to 255.255.255.255 port 67

DHCPOFFER of 192.168.0.12 from 192.168.0.10

DHCPACK of 192.168.0.12 from 192.168.0.100

bound to 192.168.0.12 -- renewal in 277 seconds.

From the output message, you can see that the IP address 192.168.0.12 has been successfully obtained. This means that the DHCP service test was successful. At this point, the user looks at the address lease file dhcpd.leases and can also see the assigned IP addresses. As follows:

root@daxueba:~# cat /var/lib/dhcp/dhcpd.leases

# The format of this file is documented in the dhcpd.leases(5) manual page.

# This lease file was written by isc-dhcp-4.3.5

# authoring-byte-order entry is generated, DO NOT DELETE

authoring-byte-order little-endian;

lease 192.168.0.10 {

starts 1 2018/07/02 10:15:00;

ends 1 2018/07/02 10:25:00;

cltt 1 2018/07/02 10:15:00;

binding state active;

next binding state free;

rewind binding state free;

hardware ethernet 00:0c:29:5c:ae:aa;

client-hostname "daxueba";

}

lease 192.168.0.11 {

starts 1 2018/07/02 10:18:17;

ends 1 2018/07/02 10:28:17;

cltt 1 2018/07/02 10:18:17;

binding state active;

next binding state free;

rewind binding state free;

hardware ethernet 00:0c:29:99:92:4f;

uid "\001\000\014)\231\222O";

set vendor-class-identifier = "MSFT 5.0";

client-hostname "Test";

}

lease 192.168.0.12 {

starts 1 2018/07/02 10:34:56;

ends 1 2018/07/02 10:44:56;

cltt 1 2018/07/02 10:34:56;

binding state active;

next binding state free;

rewind binding state free;

hardware ethernet 00:0c:29:25:89:95;

client-hostname "daxueba";

}

From the output information, you can see the IP address allocated by DHCP service and the corresponding lease information.

The above is how to configure Kali Linux common services and obtain IP addresses. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report