Ubuntu 23.04
Sponsored Link

DHCP : Configure DHCP Client : Ubuntu2023/04/24

 
Configure DHCP Client to get IP address from DHCP Server in local network.
[1] For Ubuntu Clients, Configure like follows.
root@dlp:~#
vi /etc/netplan/01-netcfg.yaml
# enable dhcp4 and comment out static IP related settings

network:
  ethernets:
    enp1s0:
      dhcp4: true
      #addresses: [10.0.0.30/24]
      #routes:
      #  - to: default
      #    via: 10.0.0.1
      #    metric: 100
      #nameservers:
      #  addresses: [10.0.0.10,10.0.0.11]
      dhcp6: false
  version: 2

root@dlp:~#
netplan apply


DHCP : Configure DHCP Client : Windows
 
Configure DHCP Client on Windows computer. This example is based on Windows 11.
[2] Right-click the start button and open the [Network connection], and then click the [Properties].
[3] That's OK if [IP assignment] is [DHCP]. If not, click the [Edit] button.
[4] If clicked [Edit] button on previous section, following window is shown. Select [Automatic (DHCP)] and save.
[5] Confirm the Network connection status, that's OK if IP is assigned.
Matched Content