Ubuntu 21.04
Sponsored Link

DHCP : Configure DHCP Client : Ubuntu2021/05/05

 
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:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      dhcp4: yes
      #addresses: [10.0.0.31/24]
      #gateway4: 10.0.0.1
      #nameservers:
      #  addresses: [10.0.0.10]

root@dlp:~#
netplan apply


DHCP : Configure DHCP Client : Windows
 
Configure DHCP Client on Windows computer. This example is based on Windows 10.
[2] Open [Network and Sharing Center] settings section and Click the network device to open settings and select [Internet Protocol version 4] and click [Properties] button.
[3] Check boxes like follows, then IP address is re-configured automatically.
[4] Confirm the network status IP address has been assigned normally.
Matched Content