How to install an IPv4 address on my Raspian
Revision as of 15:55, 14 December 2020 by Woussen.alexis59c630e (talk | contribs)
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:
- You have to connect via IPv6 : https://en-wiki.ikoula.com/en/Connect_to_a_server_in_IPv6_via_Putty
- Edit the network configuration file and and add this block (to modify with your IP, including the gateway line)
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. /!\