In this guide we'll show you how you can easily configure your assigned IPs on your VPS running ifupdown.
1. Getting your networking details
- In the sidebar, click Cloud (or GPU Cloud / VDS / Metal).
- Click the row for the server you want to get the networking information from. The detail page opens at /vps/{id} for VPS-class or /metal/{id} for dedicated.
- Go to the Network tab.
In there you'll find your networking information:
2. Configuring the Network
Start by logging into your VPS and then run the following command:
nano /etc/network/interfacesNow, Depending on the IPs from step 1., edit this file to look like this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address <IPv4 Address>
netmask <IPv4 Netmask>
dns-nameservers 1.1.1.1 9.9.9.9 2620:fe::fe 2620:fe::9
gateway <IPv4 Gateway>
iface eth0 inet6 static
address <IPv6 Address>/64
gateway <IPv6 Gateway>
Once done, Press Ctrl + X then Y and then press Enter to exit out of the file editor.
3. Checking for syntax errors
Run the following command to check for any syntax errors:
ifquery eth0Your output should look something like this:
4. Applying Changes
Next, to apply your new changes, reboot the server with the following command:
# rebootAnd Done! Network should be working on your VPS now.