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

Hi,

You can follow the instructions here:

Linode Static IP Configuration

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct