You are not logged in.

#1 2011-11-30 06:45:24

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

[SOLVED] netcfg "IP lease attempt failed" on ethernet connection

Since the latest update today I can't connect to the Internet (using an ethernet cable) any more.

# NETCFG_DEBUG="yes" netcfg cable
DEBUG: Loading profile cable
DEBUG: Configuring interface eth0
:: cable up                                                [BUSY]
DEBUG: status reported to profile_up as:
DEBUG: Loading profile cable
DEBUG: Configuring interface eth0
DEBUG: ethernet_iproute_up ifup
DEBUG: ethernet_up dhcpd -qL -t 30 eth0
DEBUG: 
 > DHCP IP lease attempt failes.
DEBUG: profile_up connect failed
                                                             [FAIL]

System: Arch 64

Does anyone have any idea what might be wrong? Not sure where to start there, as the interface eth0 seems to be up and all right under ifconfig.
Thanks for any hints.

Last edited by JackH79 (2011-12-01 00:53:19)

Offline

#2 2011-11-30 06:56:02

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: [SOLVED] netcfg "IP lease attempt failed" on ethernet connection

ls -l /var/lib/dhcpcd/
if there is dhcpcd-eth0.lease , remove it and try again


O' rly ? Ya rly Oo

Offline

#3 2011-11-30 06:58:01

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: [SOLVED] netcfg "IP lease attempt failed" on ethernet connection

Yeah, done that already, forgot to mention.
Thanks though.

Offline

#4 2011-11-30 07:40:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: [SOLVED] netcfg "IP lease attempt failed" on ethernet connection

I would check the output of ip link and ensure that eth0 does not report "NO-CARRIER".  If it does (and even if it does not), check the activity lights at both your computer and router to ensure that your cable is connected.  Also, try a new cable.  I cannot even guess how often that fixes the issue smile

If you have connectivity, try putting the interface up by hand : sudo ip link set  eth0 up

If that works, then try starting dhcpcd (or dhclient) by hand and see what happens.  ( sudo dhcpcd )


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-12-01 00:52:48

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: [SOLVED] netcfg "IP lease attempt failed" on ethernet connection

Thanks very much for your suggestions, ewaller.
Weirdly enough though, this morning I came into work, plugged in the cable and, voilà, it worked straight away.
Maybe it's just that time of the month.
Anyway, thanks again to you and cybertorture. I'll mark this as solved for now.

EDIT: Just a little follow up to make it a bit more embarassing: I just realised that it was actually the port of the switch that's broken. So thanks to ewaller for stating the obvious wink

Last edited by JackH79 (2011-12-01 07:05:25)

Offline

Board footer

Powered by FluxBB