0

As a title, I found my wi-fi port without an IP address assigned, as follows.

ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:13:32:81:2c:d2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

That must be due to no configuration to launch the DHCP client. Or DHCP client failed to get correct response from DHCP server. How can I use the command to check if DHCP client can successfully request an IP configuration from the server? And how can I check if it's configured correctly for DHCP client to do request the start-up time?

ps. The distribution is 'Ubuntu 20.04'

4
  • 1
    Do you know which DHCP client(s) you're running (or are available) on the Linux distro (???? which one) you're using?
    – Seamus
    Mar 8 at 6:19
  • wlan0 is a Wi-Fi adapter, so before DHCP client can begin, the adapter needs to be configured with a network name, and encryption parameters unless the network is completely open (unsafe). With the modern WPA encryption being the norm, this usually means having a wpa-supplicant or equivalent process needs to be running and configured with the name of the desired network. If you are running NetworkManager or some other system to manage your network configuration, it will usually handle the wpa-supplicant and the DHCP client for you.
    – telcoM
    Mar 8 at 8:50
  • I ran 'NetworkManager' and nothing happened or changed. Mar 8 at 9:16
  • Could you edit your question to say which distribution you are using: Ubuntu, centos, Debian, arch, ...? This might give us a hint. Different distributions do this in different ways. Mar 8 at 23:35

0

You must log in to answer this question.

Browse other questions tagged .