Problems getting DHCP address with dhcpcd using tg3 driver
I've built up my LFS v6.2 system using kernel version 2.6.16.49, and with static IP it works fine. However, when I try to change it from static to DHCP (using dhcpcd v2.0.8), I get the following messages at boot:
Code:
... Code:
Info, MAC address = 00:15:60:a2:21:47 From these messages, it looks like perhaps the link is coming up AFTER it tried to send the DHCP_DISCOVER? :confused: If so, how can I fix that timing, or maybe get it to not reset the link when it starts DHCP? Or is it something else entirely? Any info or help would be appreciated. If you need any further info, let me know. |
From the messages it looks that you're right and it starts with DHCP_DISCOVER before the interface is up. You should change your script to either wait a while after setting up intercase or checking ifconfig status of the interface until it appears.
|
Well, that's what I was thinking, but I don't know how to do that. Is there a way to put a pause into a script? Or how can I tell it not to send the DHCP_DISCOVER until the interface is back up? I know where the various scripts, I'm just not too familiar (yet) with their syntax. I'm still fairly new to Linux, and more familiar with batch files and vbscripts. :-P
|
Please post your ifconfig.eth0 script (I can't find the template in LFS sources). It should be somewhere in /etc. You may simply add sleep command with time of 10 seconds or so before dhcp client command.
|
What are the contents of /etc/resolv.conf after dhcpcd fails?
|
Mara: "ifconfig.eth0" is a folder on my machine, not a script. Inside that folder are two files: dhcpcd and ipv4. These two files aren't scripts, they're config files. They live in /etc/sysconfig/network-devices/ifconfig.eth0/ Maybe the file you are looking for is called "ifup" on my system, so in case it helps, here it is:
Code:
#!/bin/sh Quakeboy02: Code:
# Begin /etc/resolv.conf |
All times are GMT -5. The time now is 01:24 AM. |