How to install an IPv4 address on my Raspian

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Problem:

I have ordered an additional IPv4 address for my Raspberry Pi, however I can not reach it after delivery.

Solution:
It is a normal behaviour, IKOULA provides you an additional IPv4 address, but does not configure it on your server:

nano /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
address 178.170.Y.X
netmask 24
gateway 178.170.Y.1
dns-nameservers 213.246.33.144
  • Reboot the network service
systemctl restart networking.service
  • Check the IP statue by executing:
ip addr show
  • You should see:
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
   link/ether dc:a6:32:5e:b8:f3 brd ff:ff:ff:ff:ff:ff
   inet 178.170.10.14/24 brd 178.170.10.255 scope global eth0:1
   inet6 2a00:c70:130:1::110/64 scope global
      valid_lft forever preferred_lft forever
  • You are now able to connect to your server via IPv4

/!\ There may be an error message indicating that the Eth0 interface is not created, because it has not fully restarted. After rebooting, this message should be gone. /!\