Linode Forum
https://forum.linode.com/

Private network on Ubuntu 14.10
https://forum.linode.com/viewtopic.php?f=19&t=12054
Page 1 of 1

Author:  marioveli [ Mon Jul 13, 2015 2:57 pm ]
Post subject:  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:

Code:
#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:

Code:
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

Author:  rfeliciano [ Fri Jul 24, 2015 4:22 pm ]
Post subject:  Re: Private network on Ubuntu 14.10

Try this:

Code:
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.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/