You are not logged in.

#1 2009-11-06 18:09:10

Pjotrik
Member
Registered: 2007-04-01
Posts: 8

[SOLVED] Cannot get an IP from DHCP

Hello, I dont know why, but my arch linux dont want an IP from DHCP Server when I try to connect to LAN. Everytime it says timed out. On windows the server assigns with no problem. I tried to set a static IP, that was given to windows, but it dont work either. Can anybody know what to do? Thanks in advance.

Last edited by Pjotrik (2009-11-20 14:29:31)

Offline

#2 2009-11-06 20:26:28

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: [SOLVED] Cannot get an IP from DHCP

Which interface are you using, and what is the errormessage you are getting?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#3 2009-11-06 20:27:51

Pjotrik
Member
Registered: 2007-04-01
Posts: 8

Re: [SOLVED] Cannot get an IP from DHCP

Its an eth0, during the boot I'm getting message Dhcpcd: Timed out. Here are my settings in /etc/rc.conf :
eth0="dhcp"
INTERFACES=(eth0)

Offline

#4 2009-11-07 00:47:10

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: [SOLVED] Cannot get an IP from DHCP

Check if the driver for your network card is loaded. Helpful commands are hwdetect, lspci, lsmod and modinfo.

Edit: Actually, all you need is lspci -v. Then look for the entry for "Ethernet controller". Ideally it will say something like

02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
        ...
        Kernel driver in use: atl1
        Kernel modules: atl1

Last edited by grey (2009-11-07 01:38:00)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#5 2009-11-07 09:54:35

Pjotrik
Member
Registered: 2007-04-01
Posts: 8

Re: [SOLVED] Cannot get an IP from DHCP

I believe my driver and network card is working without problems. Because I remember that at home I managed to connect PC with my notebook(I cannot get an IP on notebook) and it was working well. Here is an output from lspci -v :

00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
        Subsystem: Lenovo ThinkPad T61
        Flags: bus master, fast devsel, latency 0, IRQ 31
        Memory at fe200000 (32-bit, non-prefetchable) [size=128K]
        Memory at fe225000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 1840 [size=32]
        Capabilities: <access denied>
        Kernel driver in use: e1000e
        Kernel modules: e1000e

Last edited by Pjotrik (2009-11-07 09:56:04)

Offline

#6 2009-11-07 14:15:31

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: [SOLVED] Cannot get an IP from DHCP

Next step is to check that loading the driver worked:

$ dmesg | grep e1000e

If there are no problems, bring up the interface with (as root) "ifconfig eth0 up", then check its state with "ifconfig eth0" or "ifconfig -a". If it looks OK, try to get a lease for the interface using dhcpcd.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#7 2009-11-07 22:04:58

uwinkelvos
Member
Registered: 2009-06-07
Posts: 129

Re: [SOLVED] Cannot get an IP from DHCP

1) try dhclient instead of dhcpcd. later one is doesnt ever get a lease with my router
2) for static ip you have to configure the interface, a route to the gateway and probably a dns server

rc.conf:

eth0="eth0 192.168.2.20 netmask 255.255.255.0 broadcast 192.168.2.255"
INTERFACES=(eth0)
gateway="default gw 192.168.2.1"
ROUTES=(gateway)

resolve.conf:

nameserver 192.168.2.1

Offline

#8 2009-11-20 14:29:17

Pjotrik
Member
Registered: 2007-04-01
Posts: 8

Re: [SOLVED] Cannot get an IP from DHCP

Thanks for help, but the problem was with dhcpcd, there is probably some bug. With dhclient there is no problem with assigning IP.

Offline

#9 2010-06-29 21:33:47

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Cannot get an IP from DHCP

I'm having the same problem too. eth0 won't connect on a new install of Arch. What a pain in the ass. sad


joe@trusktr.io - joe at true skater dot io.

Offline

#10 2010-06-29 22:18:48

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Cannot get an IP from DHCP

Please stop pulling up threads with "I have the same problem" posts, especially when the OP solved its problem. You started one yourself already, link to threads that may be interesting from there instead.

Offline

#11 2010-06-29 22:54:39

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] Cannot get an IP from DHCP

Alright, will do. Sorry.


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB