Pular para o conteúdo
  • Denunciar
  • Indicar

1. erro

Enviado em 26/11/2015 - 13:14h

Sempre que mando reiniciar meu serviço de rede da esse erro, alguém pode me ajudar a corrigir isso?
se eu tiver que trocar a placa de rede, o que preciso fazer?

# /etc/init.d/networking restart

[....] Running /etc/init.d/networking restart is deprecated because it may not re-enable[warn interfaces ... (warning).

[....] Reconfiguring network interfaces...ifup: interface eth0 already configured

ifup: interface eth1 already configured

done

Responder tópico

2. Re: erro

Enviado em 26/11/2015 - 14:22h

qual a versao do debian que vc esta usando? alem disse copie o conteudo do arquivo etc/network/interfaces aqui pra gente verificar

3. Debian 7

Enviado em 26/11/2015 - 15:02h

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface

auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.yy.yy
netmask 255.255.255.0
gateway 192.168.yy.y
dns-nameservers 8.8.8.8


auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.x.xxx
netmask 255.255.255.0
# broadcast 192.168.x.0
# network 192.168.0.0

#broadcast 192.168.x.xxx
#gateway 192.168.x.x

4. Re: erro

Enviado em 26/11/2015 - 15:14h

deixe o arquivo assim:


auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.yy.yy
netmask 255.255.255.0
network 192.168.y.0
broadcast 192.168.y.255
gateway 192.168.yy.y
dns-nameservers 8.8.8.8

allow-hotplug eth1
iface eth1 inet static
address 192.168.x.xxx
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255

reinicie o serviço de rede e veja se parou o erro

5. erro

Enviado em 26/11/2015 - 16:00h


ta dando o mesmo erro.
tem alguma forma de ver um log para saber onde esta o problema?

6. Re: erro

Enviado em 26/11/2015 - 16:09h


qual versao do debian vc ta usando o debian 8 ?

7. erro

Enviado em 26/11/2015 - 16:40h


debian 7

8. Re: erro

Enviado em 26/11/2015 - 17:04h

fiz um teste aqui num debian 7 que esta em dhcp e esse warning aparece aqui tb, fiz uma pesquisa e parece que isso é normal usando o comando /etc/init.d/networking restart se vc tiver no console do servidor localmente e nao conectado via ssh tenta um /etc/init.d/networking stop e depois um /etc/init.d/networking start deve funcionar normalmente sem aparecer o warning, tb pode usar o comando:
 invoke-rc.d networking stop ;  invoke-rc.d networking start  
veja o site que eu achei essas informaçoes: http://crunchbang.org/forums/viewtopic.php?id=25344

9. Re: erro

Enviado em 26/11/2015 - 17:22h

Acho que é esse dns... Tira e coloca no resolv.conf só.
--
-I've been talking to the main computer
-And...?
-It hates me

10. Re: erro

Enviado em 26/11/2015 - 17:24h

Dxa o interfaces assim:
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.yy.yy
netmask 255.255.255.0
network 192.168.y.0
broadcast 192.168.y.255
gateway 192.168.yy.y

allow-hotplug eth1
iface eth1 inet static
address 192.168.x.xxx
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
E colocar o dns no /etc/resolv.conf:
nameserver 8.8.8.8 
--
-I've been talking to the main computer
-And...?
-It hates me

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder