|
Message-ID: <002301c3eb82$fdc8d8a0$0100a8c0@grotedoos> Date: Thu, 5 Feb 2004 01:57:12 +0100 From: "Berend-Jan Wever" <SkyLined@...p.tudelft.nl> To: <owl-users@...ts.openwall.com> Subject: Re: dhcp client Ok, I've build my dhclient. But I'm just running into more and more problems, I hope you can help me out, but this might be getting more of a dhcp problem then an owl problem now... problem 1: dhclient seems to require a "/etc/dhclient-script", which was missing (shouldn't a default version have been installed with the rpm ?). My solution: I found the attached file on the internet and used that. problem 2: dhclient seems to require a "/etc/dhclient.conf" file, which was also missing. My solution: I've constructed something from man-pages and googling for information, also attached. The system I'm building is going to have to ethernet cards installed: - eth0: DHCP - eth1: 192.168.0.16 netmask 255.255.255.0 So I edited /etc/sysconfig/network-scripts/ifcfg-eth0 and -eth1. -- /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes TYPE=Ethernet -- EOF problem 3: when "ifup" gets run to get eth0 up, it tries to use "/sbin/pump" instead of "/sbin/dhclient" for DHCP. (This must be an old script or something !?) My solution: I edited ifup, added a small part for "BOOTPROTO=dhclient" which would do -- /etc/sysconfig/network-scripts/ifup: -- *SNIP* -- echo -n "Requesting DHCP information for $DEVICE..." if ifconfig $DEVICE up && /sbin/dhclient -q $DEVICE ; then echo " done." else echo " failed." ifconfig $DEVICE down exit 1 fi -- *SNIP* -- problem 4: dhclient won't work. It gives "/sbin/dhclient-script: configuration for eth0 not found." error messages and it just seems to keep on DHCPDISCOVERing forever without accepting a DHCPOFFER. -- *SNIP* -- root@...ydoos:~# dhclient eth0 Internet Software Consortium DHCP Client V3.0pl2 Copyright 1995-2001 Internet Software Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP /sbin/dhclient-script: configuration for eth0 not found. Listening on LPF/eth0/52:54:05:f3:d6:98 Sending on LPF/eth0/52:54:05:f3:d6:98 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPOFFER from 172.20.72.3 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 172.20.72.3 /sbin/dhclient-script: configuration for eth0 not found. DHCPDECLINE on eth0 to 255.255.255.255 port 67 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 DHCPOFFER from 172.20.72.3 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 172.20.72.3 -- *SNIP* -- Anyway, I hope somebody has the time and knowledge to help me out with all this, thanks in advance! Cheers, SkyLined Download attachment "dhclient-script" of type "application/octet-stream" (6426 bytes) Download attachment "dhclient.conf" of type "application/octet-stream" (372 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.