Set Static and DHCP IP Setting for Ubuntu

Here we will cover about Static IP: Manually assign a fixed IP address in Ubuntu (via Netplan or GUI) so it doesn’t change—useful for servers or consistent network access.DHCP IP: Automatically obtains an IP address from a router/server using DHCP, making setup easy but the IP may change over time.