Adding a new public IP address to a virtual private server

Kernels & Hardware, configuring network, installing services

Adding a new public IP address to a virtual private server

Postby drkirkby » 2018-07-04 00:36

I have a virtual private server (VPS) that I pay money for each month. I have no idea of the hardware it actually runs on, but the operating system is Debian 9.
I want to add a second IP address, which I have paid for (109.228.59.169). The "default" IP is 109.228.58.153.

I'm a bit puzzled how to do this. I believe /etc/network/interfaces is probably relevant. The contents of that are:

root@localhost:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens192
iface ens192 inet dhcp
root@localhost:~#

There's nothing in the directory /etc/network/interfaces.d, so the "source" above is not doing anything.

Dave
drkirkby
 
Posts: 6
Joined: 2018-06-17 23:24

Re: Adding a new public IP address to a virtual private serv

Postby None1975 » 2018-07-04 14:04

Hello, Dave. You can check this.
OS: Debian 9.5 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 673
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable