
Cheap Dedicated Server
How to Configure a DHCP or Static IP on Ubuntu Server
How to Configure a DHCP or Static IP on Ubuntu Server (F.A.Q)
How do I find my network interface name?
Use the command ip link show
or ls /sys/class/net/
to list available interfaces.
What happens if my network goes down after applying changes?
Ensure the syntax in your Netplan file is correct. If needed, revert changes using sudo nano /etc/netplan/00-installer-config.yaml
and correct the file.
Can I use both DHCP and a static IP on different interfaces?
Yes, you can configure multiple interfaces separately in the Netplan file, specifying DHCP for one and a static IP for another.
How do I restart networking without rebooting?
Run sudo netplan apply
or restart the networking service using sudo systemctl restart systemd-networkd
.