SSH e ligar lento chegando após a inicialização. Erro ao reiniciar a rede

0

Estou construindo um roteador usando 16.04.2. Depois de instalar o SSH, renomear / configurar as interfaces e depois instalar o Bind, notei que ele leva cerca de 5 minutos para o ssh e o bind começa a responder (o ICMP começa a responder dentro de 30 segundos). Quando os serviços surgirem, as coisas parecem estar funcionando bem.

Além disso, descobri que estou recebendo este erro ao reiniciar a rede:

sudo /etc/init.d/networking restart

[....] Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details.
failed!

Então, estou pensando que tem algo a ver com renomear / configurar as interfaces. Eu segui as intruções aqui para modificar o grub: Alterando o nome das Interfaces de Rede Ubuntu 16.04

# spectrum
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f0:4d:a2:24:99:af", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0spectrum"

# name1.lan
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:86:52:31", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth1name1"

# name2.lan
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:86:52:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth2name2"

# available
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:86:52:33", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth3"

# available
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:86:52:32", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth4"

Em seguida, configure / etc / network / interfaces:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
#
auto eth0spectrum
iface eth0spectrum inet dhcp
#
auto eth1name1
iface eth1name1 inet static
address 10.27.66.3
netmask 255.255.255.0
network 10.27.66.0
broadcast 10.27.66.255
gateway 10.27.66.1
dns-nameservers 127.0.0.1
#
auto eth2name2
iface eth2name2 inet static
address 10.28.66.1
netmask 255.255.255.0
network 10.28.66.0
broadcast 10.28.66.255
gateway 10.28.66.1
dns-nameservers 127.0.0.1
#
auto eth3
iface eth3 inet dhcp
#
auto eth4
iface eth4 inet dhcp

saída de statusctl status networking.service:

● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
   Active: failed (Result: exit-code) since Sun 2017-07-16 10:56:59 EDT; 15s ago
     Docs: man:interfaces(5)
  Process: 1976 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 1970 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-
 Main PID: 1976 (code=exited, status=1/FAILURE)

Jul 16 10:56:59 cog systemd[1]: Starting Raise network interfaces...
Jul 16 10:56:59 cog ifup[1976]: RTNETLINK answers: File exists
Jul 16 10:56:59 cog ifup[1976]: Failed to bring up eth2name2.
Jul 16 10:56:59 cog systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 10:56:59 cog systemd[1]: Failed to start Raise network interfaces.
Jul 16 10:56:59 cog systemd[1]: networking.service: Unit entered failed state.
Jul 16 10:56:59 cog systemd[1]: networking.service: Failed with result 'exit-code'.

saída de journalctl -xe

Jul 16 10:56:59 cog named[1127]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
Jul 16 10:56:59 cog named[1127]: automatic empty zone: D.F.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 8.E.F.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 9.E.F.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: A.E.F.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: B.E.F.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Jul 16 10:56:59 cog named[1127]: automatic empty zone: EMPTY.AS112.ARPA
Jul 16 10:56:59 cog named[1127]: reloading configuration succeeded
Jul 16 10:56:59 cog named[1127]: any newly configured zones are now loaded
Jul 16 10:56:59 cog systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 10:56:59 cog systemd[1]: Failed to start Raise network interfaces.
-- Subject: Unit networking.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit networking.service has failed.
-- 
-- The result is failed.
Jul 16 10:56:59 cog systemd[1]: networking.service: Unit entered failed state.
Jul 16 10:56:59 cog systemd[1]: networking.service: Failed with result 'exit-code'.
Jul 16 10:56:59 cog sudo[1958]: pam_unix(sudo:session): session closed for user root
Jul 16 10:57:07 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 1
Jul 16 10:57:22 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 1

saída de / var / log / syslog

Jul 16 10:54:34 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 10 (xid=0x2325a874)
Jul 16 10:54:44 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 9 (xid=0x2325a874)
Jul 16 10:54:53 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 13 (xid=0x2325a874)
Jul 16 10:55:06 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 16 (xid=0x2325a874)
Jul 16 10:55:22 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 19 (xid=0x2325a874)
Jul 16 10:55:41 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 14 (xid=0x2325a874)
Jul 16 10:55:55 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 10 (xid=0x2325a874)
Jul 16 10:56:05 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 10 (xid=0x2325a874)
Jul 16 10:56:15 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 20 (xid=0x2325a874)
Jul 16 10:56:35 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 11 (xid=0x2325a874)
Jul 16 10:56:46 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 10 (xid=0x2325a874)
Jul 16 10:56:56 cog dhclient[1260]: DHCPDISCOVER on eth0spectrum to 255.255.255.255 port 67 interval 11 (xid=0x2325a874)
Jul 16 10:56:59 cog systemd[1]: Stopped Raise network interfaces.
Jul 16 10:56:59 cog systemd[1]: Starting Raise network interfaces...
Jul 16 10:56:59 cog ifup[1976]: RTNETLINK answers: File exists
Jul 16 10:56:59 cog ifup[1976]: Failed to bring up eth2name2.

Alguma idéia de como corrigir isso? Qualquer ajuda seria muito apreciada.

    
por phil l 16.07.2017 / 17:32

1 resposta

0

Pesquisando, achei o seguinte: link

Eu só tenho duas interfaces enquanto estou construindo isso na minha mesa.

A configuração temporária de redes estáticas falsas nas interfaces DHCP atualmente não utilizadas resolveu o problema.

    
por phil l 16.07.2017 / 18:36