Date: Sun, 24 Jan 1999 23:09:53 +0100 From: "Pål Sommerhein" <psommerh@jancomulti.com> To: kovarsky@duke.usask.ca Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DHCP client Message-ID: <36AB9A31.A0C8E180@jancomulti.com> References: <36AB65B0.A063EC9F@duke.usask.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36AB9A31.A0C8E180>