View previous topic :: View next topic |
Author |
Message |
bsdtux n00b
Joined: 29 Apr 2013 Posts: 5
|
Posted: Wed May 01, 2013 4:54 am Post subject: fresh install dhcpcd fails to obtain IP address |
|
|
All,
I seem to be having trouble after a fresh install of gentoo x86 on a Dell d630. When it boots up I see where it says trying to rebind to 192.168.2.x . It then says broadcasting for a lease, timed out, allowing 8 seconds for IPV4, then searches for apipa address.
Now then interesting part is once I login if I kill dhcpcd and then do a dhcpcd enp9s0 it will obtain an address.
I am pretty much at a loss of where to being my next phase of troubleshooting. any help would be appreciated.
lspci shows the ethernet as a BCM5755M gigabit ethernet and it is connected to a Cisco 806.1W router. |
|
Back to top |
|
|
ShadowCat8 Apprentice
Joined: 07 Oct 2008 Posts: 173 Location: San Bernardino, CA, USA
|
Posted: Wed May 01, 2013 5:54 pm Post subject: |
|
|
Greetings,
Out of curiosity, what does your /etc/conf.d/net file have for the interface?
HTH. Let us know. _________________ ________________________
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein |
|
Back to top |
|
|
bsdtux n00b
Joined: 29 Apr 2013 Posts: 5
|
Posted: Wed May 01, 2013 10:27 pm Post subject: |
|
|
it has the following
Code: | config_enp9s0="dhcp" |
|
|
Back to top |
|
|
ShadowCat8 Apprentice
Joined: 07 Oct 2008 Posts: 173 Location: San Bernardino, CA, USA
|
Posted: Thu May 02, 2013 4:29 pm Post subject: |
|
|
Okay,
After you restart dhcpcd, what do you get from "ifconfig -a"?
And, what does the dmesg say about what happened during the time it failed on boot? BTW, if you haven't looked through dmesg before, the best way I know to scan it is, once you have brought up the system, log in as root and do:
And the output we are looking for is what happened when the system was setting up and working with the interface (I bolded the lines in the example below):
dmesg wrote: | ...<snip>...
ata1: SATA max UDMA/133 cmd 0xfe00 ctl 0xfd00 bmdma 0xfa00 irq 20
ata2: SATA max UDMA/133 cmd 0xfc00 ctl 0xfb00 bmdma 0xfa08 irq 20
Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
via-rhine: Broken BIOS detected, avoid_D3 enabled.
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
ACPI: PCI Interrupt Link [ALKD] enabled at IRQ 23
via-rhine 0000:00:12.0: PCI INT A -> Link[ALKD] -> GSI 23 (level, low) -> IRQ 23
via-rhine 0000:00:12.0: setting latency timer to 64
eth0: VIA Rhine II at 0x1ee00, 00:30:44:1b:ee:ff, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 0021.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
console [netcon0] enabled
netconsole: network logging started
Fusion MPT base driver 3.04.14
Copyright (c) 1999-2008 LSI Corporation
Fusion MPT SPI Host driver 3.04.14
Fusion MPT SAS Host driver 3.04.14
ohci1394 0000:00:0a.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ohci1394 0000:00:0a.0: setting latency timer to 64
...<snip - going to bottom of this dmesg for the example>...
VIA 82xx Audio 0000:00:11.5: PCI INT C -> Link[ALKC] -> GSI 22 (level, low) -> IRQ 22
VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
EXT3-fs (sda3): using internal journal
XFS mounting filesystem sda4
Ending clean XFS mount for filesystem: sda4
eth0: link up, 10Mbps, half-duplex, lpa 0x0021
Adding 1959924k swap on /dev/sda2. Priority:-1 extents:1 across:1959924k
eth0: no IPv6 routers present |
HTH. Let us know. _________________ ________________________
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein |
|
Back to top |
|
|
bsdtux n00b
Joined: 29 Apr 2013 Posts: 5
|
Posted: Fri May 03, 2013 2:07 am Post subject: |
|
|
after restarting dhcpcd then doing ifconfig -a I get an IP address. Which is good.
Also here is the output from dmesg
Code: | dmesg | grep enp9s0
[ 12.700313] systemd-udevd[12246]: renamed network interface eth0 to enp9s0
[ 21.541844] tg3 0000:09:00.0 enp9s0: Link is up at 100 Mbps, full duplex
[ 21.541847] tg3 0000.09:00.0 enp9s0: Flow control is off for TX and off for RX
|
Now I just did some expiermenting and I guess I was thinking (I feel really stupid actually) and did the following
Code: | rc-update add dhcpcd default |
then rebooted.
then it took about 15 to 20 seconds but I was able to get an IP address automatically now. I doubled check and I couldn't find in the setup guide that you should add dhcpcd but thinking about it I was like if that is a daemon then I should have it auto start on bootup. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|