Add new private IP with Network Helper without reboot?
I've just added a private IP to my Linode, and I am using the auto configuration via Network Helper.
Is that any way to bring up my private IP without reboot and without conflict with the Network Helper on the next reboot?
(I am using Ubuntu 16.04)
2 Replies
hmorris
Linode Staff
Hey there,
Another option for you would be to run the command below to append the private IP configuration to your /etc/network/interfaces file. Please substitute your private IP where is says "192.168.xxx.xx".
cat <<EOT >> /etc/network/interfaces
up ip addr add 192.168.xxx.xx/17 dev eth0 label eth0:1
down ip addr del 192.168.xxx.xx/17 dev eth0 label eth0:1
EOT
Once you do that you can reset your eth0 interface by running the command below:
ifdown eth0 && ifup eth0
Done! Your private IP address should be responsive.