Configure static ip address on legacy vp

I've tried to enable auto configure network but without success.
> Network Helper did not run: unsupported distribution or distribution version

looking to the docs I've found this sample configuration in https://www.linode.com/docs/platform/network-helper

auto lo

iface lo inet loopback

auto eth0

allow-hotplug eth0 doesn't work

iface eth0 inet6 auto

iface eth0 inet static

address 173.255.204.231/24

gateway 173.255.204.1

up ip addr add 12.34.56.78/24 dev eth0 label eth0:1 #<= this is ok? I couldn't figure out this IP on the sample

down ip addr del 12.34.56.78/24 dev eth0 label eth0:1

up ip addr add 192.168.138.44/17 dev eth0 label eth0:2 #<= if I am right this is my Private IP

down ip addr del 192.168.138.44/17 dev eth0 label eth0:2

So, my question is … will this work???

Thanks in advance.

2 Replies

The 12.34.56.78/24/eth0:1 lines in the example config are intended for bringing up a second public IP if you were assigned one. If you don't have a second public IP, you don't need them.

The 192.168.x.x/eth0:2 lines would be for your private IP, yes.

199.231.241
its your company ip?

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