To configure a static IP address on Ubuntu Server 23.10, follow these steps:
Step 1 : Begin by updating the package list and installing net-tools:
Step 2 : Check the list of Ethernet interfaces with the command:
Step 3 : Open the netplan configuration file by using the following command:
Add the following lines to set a static IP address, subnet mask, gateway, and DNS servers. Replace enp0s3 with your actual Ethernet interface name and adjust the IP address, gateway, and DNS values accordingly:
Step 4 : Apply the changes with the command:
Step 5 : Check the connection by pinging Google:
Ensure that you receive responses, indicating a successful network configuration.
Congratulations, you have successfully configured a static IP address on your Ubuntu Server 23.10!