Private network on Ubuntu 14.10

I have problem to bring up virtual interface for private backend network.

My etc/network/interfaces file look like this:

#loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto eth0
allow-hotplug eth0
#iface eth0 inet dhcp

#static public
iface eth0 inet static
address X.X.X.X/24
gateway X.X.X.1

#static private
iface eth0 inet static
address 192.168.197.169/17

I'm using Remote Access on linode manager for IP's info.

I also tried many other configuration,like setting static private to eth1.eth0:0 or eth0:1

Also tried something like this:

auto lo
iface lo inet loopback

auto eth0 eth0:1
allow-hotplug etho eth0:1

iface eth0 inet static
address X.X.X.X/24
gateway X.X.X.1

iface eth0:1 inet static
address X.X.X.X/17

Also tried to replace eth0:1 to eth1 or eth0:0 in config above

I would greatly appreciate it if someone can give me some advise

1 Reply

Try this:

auto lo
iface lo inet loopback

auto eth0 eth0:1
allow-hotplug eth0 eth0:1

iface eth0 inet static
address X.X.X.X/24
gateway X.X.X.1

iface eth0:1 inet static
address X.X.X.X/17

Notice the change in line 5. Then run:

sudo ifdown -a && sudo ifup -a.

You can also just turn on Network Helper for your Linode to have Linode Manager configure networking for you.

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