Issue with setting up multiple IP addresses on ubuntu server installation

Posted by varunyellina on Ask Ubuntu See other posts from Ask Ubuntu or by varunyellina
Published on 2012-10-12T03:11:18Z Indexed on 2012/10/12 3:49 UTC
Read the original article Hit count: 233

I want to setup two ip addresses on my system for access through lan. This is my config on my other system.

Desktop Installation

my ip

My desktop installation runs with multiple IP's added through networkmanager both through lan and wifi.

Server Installation

On my server install I've edited /etc/network/interfaces to the following.

auto eth0
auto eth0:1
# IP-1
iface eth0 inet static
address 172.16.35.35
network 172.16.34.1
netmask 255.255.254.0
broadcast 172.166.35.255
dns-nameservers 172.16.100.221 8.8.8.8
# IP-2
iface eth0:1 inet static
address 172.16.34.34
network 172.16.34.1
netmask 255.255.254.0
gateway 172.16.34.1
broadcast 172.16.35.255

After restarting through "/etc/init.d/networking restart" I recieve "Failed to bring up eth0:1"

What am I doing wrong? Thankyou.

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server