O OP ( Konrad Höffner ) postou esta resposta em sua pergunta em 21 de outubro de 2014 às 7:22 :
Solved
The network cable was defective. I switched it out and it works again.
Minha Ethernet DHCP funciona bem no Windows,
mas não no Arch Linux com netctl
e dhcpcd
.
O que estou fazendo errado?
Saída de ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp2s0: [...]
3: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether [my mac adress] brd ff:ff:ff:ff:ff:ff
Meu netctl
profile
$ cat /etc/netctl/dhcp
Description='ethernet dhcp'
Interface=eno1
Connection=ethernet
IP=dhcp
#IP6=dhcp
#IP6=stateless
Mensagem de erro após sudo netctl start dhcp
$ sudo journalctl -xn
-- Logs begin at Fr 2013-12-27 13:25:36 CET, end at Mo 2014-01-13 12:45:22 CET. --
Jan 13 12:44:50 laptop2 network[697]: DHCP IP lease attempt failed on interface 'eno1'
Jan 13 12:44:50 laptop2 network[697]: Failed to bring the network up for profile 'dhcp'
Jan 13 12:44:50 laptop2 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jan 13 12:44:50
laptop2 systemd[1]: Failed to start Networking for netctl profile dhcp.
OK, então, tem problemas para organizar a rede, fazer isso sozinho ...
$ sudo ip link set eno1 up
$ sudo netctl start dhcp
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
$ sudo journalctl -xn
[...]
Jan 13 12:47:20 laptop2 network[1304]: Starting network profile 'dhcp'...
Jan 13 12:47:20 laptop2 network[1304]: The interface of network profile 'dhcp' is already up
Jan 13 12:47:20 laptop2 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jan 13 12:47:20 laptop2 systemd[1]: Failed to start Networking for netctl profile dhcp.
Isso também não ajuda, definindo-o novamente.
$ sudo ip link set eno1 down
Tentando com dhcpcd
...
$ sudo systemctl start dhcpcd
$ ping www.google.de
connect: Network is unreachable
$ ip link
[...]
3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
[...]
$ sudo systemctl stop dhcpcd
$ sudo netctl start dhcp
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
$ sudo journalctl -xn
-- Logs begin at Fr 2013-12-27 13:25:36 CET, end at Mo 2014-01-13 12:53:06 CET. --
Jan 13 12:52:36 laptop2 dhcpcd[1753]: version 6.1.0 starting
Jan 13 12:52:36 laptop2 dhcpcd[1753]: eno1: soliciting a DHCP lease
Jan 13 12:53:06 laptop2 dhcpcd[1753]: timed out
Jan 13 12:53:06 laptop2 dhcpcd[1753]: exited
Jan 13 12:53:06 laptop2 network[1707]: DHCP IP lease attempt failed on interface 'eno1'
Jan 13 12:53:06 laptop2 network[1707]: Failed to bring the network up for profile 'dhcp'
Jan 13 12:53:06 laptop2 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jan 13 12:53:06 laptop2 systemd[1]: Failed to start Networking for netctl profile dhcp.
Depois de excluir a concessão em /var/lib/dhcpcd/dhcpcd-eno1.lease6
e tentar novamente, recebo a mesma mensagem de erro.
Escrever TimeoutDHCP=40
para /etc/netctl/hooks/timeout
e torná-lo executável também não muda nada.
O OP ( Konrad Höffner ) postou esta resposta em sua pergunta em 21 de outubro de 2014 às 7:22 :
Solved
The network cable was defective. I switched it out and it works again.