I'm having issues adding a second IP address to one interface. Below is my
Code:
/etc/networking/interfaces
Code:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 eth0:0 eth0:1
#eth0 is our main IP address
iface eth0 inet static
address 198.58.103.*
netmask 255.255.255.0
gateway 198.58.103.1
#eth0:0 is our private address
iface eth0:0 inet static
address 192.168.129.134
netmask 255.255.128.0
#eth0:1 is for www.site.com
iface eth0:1 inet static
address 198.58.104.*
netmask 255.255.255.0
gateway 198.58.104.1
When I run
Code:
/etc/init.d/networking restart
, I get several errors about resolv.conf and then a fail error about bringing up eth0:1:
Code:
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 23229
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.