[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: restarting network



On 29/03/16 15:34, Reco wrote:
	Hi.

On Tue, Mar 29, 2016 at 02:10:08PM +0100, Tony van der Hoff wrote:

Mar 29 10:15:06 tony-lx networking[21563]: Configuring network
interfaces...RTNETLINK answers: File exists
Mar 29 10:15:06 tony-lx networking[21563]: Failed to bring up eth1.
Mar 29 10:15:06 tony-lx networking[21563]: done.

Lines above are something to be expected, because your
/etc/network/interfaces tells the kernel to do the impossible:


iface eth0 inet static
	address 192.168.1.7
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255
	gateway 192.168.1.1

You have default gateway for eth0. All is good so far.


iface eth1 inet static
	address 192.168.2.8
	netmask 255.255.255.0
	network 192.168.2.0
	broadcast 192.168.2.255
	gateway 192.168.1.1

And - you have yet another default gateway for eth1.
No wonder that the kernel refuses to add the same route second time.

Reco


Thanks, Reco.
I've now commented out that line for eth1, but I still get

Mar 29 15:37:47 tony-lx networking[24921]: Failed to bring up eth1.
Mar 29 15:37:47 tony-lx networking[24921]: done.


--
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |


Reply to: