From owner-freebsd-questions Sun Jan 24 14:13:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24894 for freebsd-questions-outgoing; Sun, 24 Jan 1999 14:13:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pc144s118r1.jancomulti.com (pc144s118r1.jancomulti.com [195.139.118.144]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24886 for ; Sun, 24 Jan 1999 14:13:07 -0800 (PST) (envelope-from psommerh@jancomulti.com) Received: from jancomulti.com (localhost [127.0.0.1]) by pc144s118r1.jancomulti.com (8.8.8/8.8.8) with ESMTP id XAA00386; Sun, 24 Jan 1999 23:09:53 +0100 (CET) (envelope-from psommerh@jancomulti.com) Message-ID: <36AB9A31.A0C8E180@jancomulti.com> Date: Sun, 24 Jan 1999 23:09:53 +0100 From: "Pål Sommerhein" X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: kovarsky@duke.usask.ca CC: freebsd-questions@FreeBSD.ORG Subject: Re: DHCP client References: <36AB65B0.A063EC9F@duke.usask.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dennis wrote: > > My ISP, @Home, tells me I should be running a DHCP client in order to > have a connection. > Card is D-Link 528CT (PCI), Motorolla WebSurfer cable modem, FreeBSD 3.0 > installed. > How do go about installing, configuring and running a DHCP client? > > Dennis K. > > kovarsky@duke.usask.ca > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message I have a cable modem and use the isc-dhclient to dynamically get my IP number from my internet service provider(ISP). I the step by step guide below, my machine is called "shorty" and my ethernet interface connected to the cable modem is "xl0". Please substitute "SHORTY" and "xl0" wherever they occur with your own machine and interface name. 1. Getting the software: ------------------------ # cd /usr/ports/net/isc-dhcp2 # make # need network connection or distribution files # make install # (please see handbook if necessary) 2. Making dhclient/server files: -------------------------------- # cd /usr/ports/net/isc-dhcp2/work/dhcp-2.0b1pl6 # configure # make 3. Due to a bug(I think), prevent dhclient from configuring other interfaces than xl0 ------------------------------------------------ # vi /etc/dhclient-script [-Start of file-] #!/bin/sh if [ X"$interface" != X"xl0" ]; then | Add these three lines exit 0 | at the top to prevent fi | dhclient from configuring ... | other interfaces than xl0. [-end of file-] 4. To start dhclient at bootup: ------------------------------- # cd /usr/local/etc/rc.d # vi dhclient_xl0.sh # new file, must end with .sh [-Start of _NEW_ file-] #!/bin/sh [ -x /usr/local/sbin/dhclient ] \ && /usr/local/sbin/dhclient xl0 && echo -n ' dhclient' [-end of file-] # chmod 700 dhclient_xl0.sh # make file executable by root 5. To bring Berkeley packet filtering into your kernel: ------------------------------------------------------- # cd /sys/i386/conf # vi SHORTY # edit your kernel config file add this line(should already be there, so just uncomment): pseudo-device bpfilter 4 # /usr/sbin/config SHORTY # cd /sys/compile/SHORTY # make depend # make # make install 6. Making the Berkeley packet filter devices: -------------------------------------------- # /dev/MAKEDEV bpf0 bpf1 bpf2 bpf3 7. Reboot and see if it works: ------------------------------ # who # make sure there is nobody else using the system # shutdown -r now ... rebooting There is much more you can do by placing information in the file /etc/dhclient.conf, but I have had no need too :). Also, there will be a server installed (see /usr/local/sbin), but I am not familiar with it. Hope this helps, and best of luck :-) Take care, Pal Sommerhein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message