Tenta obter a concessão do DHCP na inicialização da interface / atraso Ethernet desconectada

2

Quando eu inicializo (ou reinicio a rede, como mostrado abaixo) no meu sistema Debian, ele tenta obter uma concessão de DHCP na minha interface de rede que está desconectada, como você verá abaixo; infelizmente, atrasa a inicialização em cerca de um minuto.

root@**HOSTNAME**:~# cat /etc/network/interfaces 
# 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

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid **THE-NETWORK-NAME**
    wpa-psk **THE-PASSPHRASE**
root@**HOSTNAME**:~# /etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/**WIRELESS-MAC-ADDR**
Sending on   LPF/wlan0/**WIRELESS-MAC-ADDR**
Sending on   Socket/fallback
DHCPRELEASE on wlan0 to **DHCP-IP-ADDR** port 67
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/**WIRED-MAC-ADDR**
Sending on   LPF/eth0/**WIRED-MAC-ADDR**
Sending on   Socket/fallback
DHCPRELEASE on eth0 to **DHCP-IP-ADDR** port 67
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/**WIRED-MAC-ADDR**
Sending on   LPF/eth0/**WIRED-MAC-ADDR**
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/**WIRELESS-MAC-ADDR**
Sending on   LPF/wlan0/**WIRELESS-MAC-ADDR**
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from **DHCP-IP-ADDR**
DHCPACK from **DHCP-IP-ADDR**
bound to **WIRELESS-IP-ADDR-FROM-DHCP** -- renewal in 597 seconds.
done.

Eu provavelmente estou negligenciando algo realmente óbvio, mas agora estou perplexo. Alguma idéia?

    
por Juniper X 22.01.2014 / 10:27

1 resposta

4

você está especificando eth0 como um dispositivo auto e um allow-hotplug :

auto eth0
allow-hotplug eth0

isso é contraditório, esp. o dispositivo auto não verificará se o dispositivo está realmente conectado .

, então você deve remover a linha com auto eth0 .

    
por 22.01.2014 / 10:43

Tags