To add a new IP address to your Ubuntu server, follow these steps:
Identify Your Network Interface:
eth0 or eth1 by running:
grep eth1 /etc/netplan/* -H
eth1 with eth0 if necessary and note the result.Edit the Netplan Configuration File:
eth0), open the corresponding netplan file using a text editor:
sudo nano /etc/netplan/50-netplan.conf
[eth0].Add Your IP Address:
Copy the provided IP address in the format AA.BB.CC.DD/XX (e.g., 192.168.1.1/24) and include it under the appropriate configuration:
network: eth0: set physical set address XX.XX.XX.XX/YY
Apply Changes:
sudo netplan apply
ping 192.168.1.1
Troubleshooting: