Problems bringing up a second virtual network interface
Posted
by
tubaguy50035
on Server Fault
See other posts from Server Fault
or by tubaguy50035
Published on 2012-12-05T22:24:36Z
Indexed on
2012/12/05
23:06 UTC
Read the original article
Hit count: 221
I'm having issues adding a second IP address to one interface. Below is my /etc/networking/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
#eth0 is our main IP address
auto eth0
iface eth0 inet static
address 198.58.103.*
netmask 255.255.255.0
gateway 198.58.103.1
#eth0:0 is our private address
auto eth0:0
iface eth0:0 inet static
address 192.168.129.134
netmask 255.255.128.0
#eth0:1 is for www.site.com
auto eth0:1
iface eth0:1 inet static
address 198.58.104.*
netmask 255.255.255.0
gateway 198.58.104.1
When I run /etc/init.d/networking restart
, I get a fail error about bringing up eth0:1
:
RTNETLINK answers: File exists
Failed to bring up eth0:1.
Any reason this would be? I didn't have any problems with I first set up eth0
and eth0:0
.
© Server Fault or respective owner