Quote:
For more detailed visit this link, were I find this information:http://www.slackbook.org/html/book.h...GURATION-TCPIP |
I tried with the netconfig utility, and hand editing the rc.wireless.conf script (i usually run the iwconfig command manually) and no other files in /etc/rc.d/. And I ran iwconfig and 'dhcpcd eth0' manually. Both worked on my system.
To all those with problems, I assume you can see eth0, or wlan0, or whatever with ifconfig? |
Quote:
|
In that case, if you're doing everything manually, I'd run dhcpcd with the -d option. Or, if you're doing everything with the scripts, i'd change DHCP_DEBUG[0] from "" to "yes" in /etc/rc.d/rc.inetd1 as previously suggested. Then post/google the debug output you get.
|
Quote:
1. run netconfig, choose DHCP 2. run /etc/rc.d/rc.inet1 stop and then run /etc/rc.d/rc.inet1 start, the response is Code:
Polling for DHCP server on interface eth0: 3. run dhclient, the response is Code:
Listening on LPF/eth0/00:2e:4f:f7:ef:e4 How to config the system to use dhclient automatically? Now when I reboot the system, I still need to run dhclient as root manually. |
I had the same problem with dhcp not working in version 13.0. I tried replacing the dhcp and dhcpd packages from 13.0 with those from 12.2 and it now works.
|
Quote:
/sbin/dhclient eth0 I think that should do it, but I'm not 100% sure. |
Quote:
Those are APIPA address , they are used for zeroconf on microsoft machine, pratically when a DHCP client is not able to aquire an IP , it automatically assign an APIPA one : http://compnetworking.about.com/cs/p...ldef_apipa.htm you can disable that behavior on dhcpcd using the -L option or --noipv4ll |
Hi all. Network DHCP is working now! Just installed slackware again. I don't know what happened before.
Thanks all. Lamosa |
In case it helps someone, let me add my experiences from today:
A machine I upgraded to 13.0 last weekend and have been using since decided to hang on "Polling for DHCP server on interface eth0" this morning. It would not time out, nor would it acquire an IP address. The kernel had not panicked, but the system would not boot past this step. Intel mobo with on-board Intel gigabit NIC. I rebooted several times, with no change in symptoms. The system is dual-boot and worked in Windows. Booted with the Slack DVD, chrooted into the system and saw this in /var/log/messages: Code:
Sep 11 09:33:17 wingnut logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1 DHCP timeout was set for 10s in both the inet1 script and inet1.conf file. No lingering .new files floating around. Tried adding a gateway IP address in inet1.conf. Nada. Finding this thread, I got the most recent stable dhcpcd code, compiled and installed it. System booted first try. (LQ saves my a$$ once again.) By way of comparison, here's the message log now: Code:
Sep 11 10:01:33 wingnut logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1 |
Well... make sure it's not a firewall issue:
if your machine is running in a local network behind a firewall, the firewall could interfere with dhclient or dhcpcd or dhcpd if the necessary ports were blocked... just wanted to rule out the obvious |
My firewall is also the DHCP server. The only rules are WAN to LAN. No rules for LAN to LAN and no changes were made to the firewall recently.
|
All times are GMT -5. The time now is 09:23 AM. |