image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #9  
Old November 18th, 2002, 10:09 PM
bing's Avatar
Registered User
 
Join Date: Nov 2002
Location: Australia
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
bing is on a distinguished road
Just a note with starting the server, you might need to mention the network adapter to listen on

something like -

dhcpd & ne0
Reply With Quote
  #10  
Old December 5th, 2002, 06:30 PM
Registered User
 
Join Date: Dec 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jakerollo is on a distinguished road
When i try to start the dhcpd (sudo dhcpd en1) i am told that "No subnet declaration for en1 (my ip)".

What could this mean and how do i fix it?
Reply With Quote
  #11  
Old December 6th, 2002, 05:33 AM
Registered User
 
Join Date: Dec 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jakerollo is on a distinguished road
Problem solved.

But a new one has just entered the door.

The startup script does not seem work properly for me. It is not a problem starting the script manually but even though it tries (i can see that on the startup screen) it is not started successfully.

I do not know where to begin looking for the reason to this problem so maybe someone could guide me here?
Reply With Quote
  #12  
Old January 4th, 2003, 01:24 AM
bing's Avatar
Registered User
 
Join Date: Nov 2002
Location: Australia
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
bing is on a distinguished road
For the subnet problem check that the subnet declared is consistent with your IP address.

Also make sure there is a network attatched to the ethernet port, my ibook's network port doestn become active uinless its pluged in, thus the DHCP server cant start if the network port is not active.
Reply With Quote
  #13  
Old March 8th, 2005, 04:56 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mmpete is on a distinguished road
Don't try to install using the scripts if you have spaces in your path name.

Quote:
Originally Posted by doemel
I have tried to install the latest version (3.0p1) on the latest OS X release (10.2.1) and all I get is error messages. When I enter ./configure I get the following list of error messages:

Making links in common
ln: raw.c: No such file or directory
ln: parse.c: No such file or directory
ln: nit.c: No such file or directory
ln: icmp.c: No such file or directory
ln: dispatch.c: No such file or directory
ln: conflex.c: No such file or directory
ln: upf.c: No such file or directory
ln: bpf.c: No such file or directory
ln: socket.c: No such file or directory
ln: lpf.c: No such file or directory
[... I have cut some lines that are similar to these...]
ln: discover.c: No such file or directory
ln: comapi.c: No such file or directory
ln: dhcp-options.5: No such file or directory
ln: dhcp-eval.5: No such file or directory
make[2]: *** [links] Error 1
make[1]: *** [links] Error 1
make: *** [links] Error 2


Amd when, after that, I try to make I get the following:

Making all in common
make[2]: *** No rule to make target `raw.o', needed by `libdhcp.a'. Stop.
make[1]: *** [all] Error 1
make: *** [all] Error 2


Can anyone help me with this and/or update the instructions for 10.2.1 and the latest release of DHCP?

Dominik Schmid
I had exactly the same problem with installation - the path to the directory I was trying to compile DHCP in had spaces. The easiest way around this is to try creating a symbolic link with spaces replaced by some other character - eg:

>pwd
/Rootdir/lots of spaces/dhcp-3.0.2
>cd /Rootdir
>ln -s "lots of spaces" lots_of_spaces
>cd lots_of_spaces/dhcp-3.0.2
>pwd
/Rootdir/lots_of_spaces/dhcp-3.0.2

Then run ./configure again, and it should all work!

HTH,
Alastair
Reply With Quote
  #14  
Old June 17th, 2006, 05:50 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
chrispy987 is on a distinguished road
DHCPd Server on 10.4 (workstation)

Thanks to kilowatt for getting me started on this. My solution is pretty barbones, but it works for me.


1. Download the DHCP code from http://www.isc.org/.

2. Expand the package. I used /sbin as the directory.
sudo tar xcvf dhcp-X.XX

3. Change in to the new directory.

4. Build and install the package.
sudo ./configure
sudo make
sudo make install

5. Add dhcp.plist to /System/Library/LaunchDaemons
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>org.isc.dhcpd</string>
	<key>OnDemand</key>
	<false/>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/sbin/dhcpd</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>UserName</key>
	<string>root</string>
</dict>
</plist>
This is configured to launch on start up.

6. Configure dhcpd.conf
Here's a verison of what I used: Sample 1
Code:
## /etc/dhcpd.conf file 
## compiled by the infamous super-hacker unix guru kilowatt from macosx.com (you need this in the file for things to work :p )
## tweaked for fixed addresses by Chrispy.


option domain-name "Your_domain.com";
option domain-name-servers 66.66.77.88, 66.66.77.89;

##Check ddns?
ddns-update-style ad-hoc;


Authoritative;

##define the Subnet to be served.

subnet 192.168.1.0 netmask 255.255.255.0 {

##Define the DHCP address range to be served.

range 192.168.1.50 192.168.1.90;
default-lease-time 300000;
max-lease-time 350000;
option routers 192.168.1.1; 
}


## Fixed IP addresses the name isn't too important.  Just match the MAC address (hardware ethernet) the fixed-address to use.  Watch the semicolons.
host comp1 {
  hardware ethernet 00:11:22:33:44:55;
  fixed-address 192.168.1.2;
}

host comp2 {
  hardware ethernet 00:aa:bb:cc:dd:ee;
  fixed-address 192.168.1.3;
}

host comp3 {
  hardware ethernet 00:ee:dd:cc:bb:aa;
  fixed-address 192.168.1.4;
}

host router {
  hardware ethernet 00:aa:11:bb:22:cc;
  fixed-address 192.168.1.1;
}

Now dhcp should be availalbe using the service command, and you should be able to start and stop it normally. It should also launch at start up. If you want to turn it off, just edit the .plist.
Attached Files
File Type: txt dhcpd.conf_sample.txt (1.1 KB, 5 views)
File Type: txt dhcpd.conf_sample2.txt (3.2 KB, 3 views)
File Type: txt dhcp.plist.txt (436 Bytes, 7 views)
Reply With Quote
  #15  
Old June 17th, 2006, 03:04 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
There's also the option of using bootpd, which is included in OS X. Did you find a deficiency in bootpd where ISC's dhcpd was better?

If not, would a howto on setting up dhcp services with bootpd be helpful?
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #16  
Old August 7th, 2006, 04:13 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mlawson66 is on a distinguished road
sharing AirPort and serving up DHCP?

So, I'm trying to share my internet connection via the built in wireless connection on my powerbook. A couple people with Linux laptops have tried to connect, but only people with macs have met with success. It appears that DHCP requests aren't being answered. So, I tried the steps detailed in this thread, but dhcpd can not bind to the interface...

<snip>
frisbee:/etc root# dhcpd en1
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 leases to leases file.
Listening on BPF/en1/00:0a:95:f4:fa:fe/10.0.2/24
Sending on BPF/en1/00:0a:95:f4:fa:fe/10.0.2/24
Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
</snip>


Any ideas on how to get this thing to hand out DHCP over the wireless connection?

OS X 10.4.7, 15" Aluminum Powerbook 1.25 GHz.

Quote:
Originally Posted by chrispy987 View Post
Thanks to kilowatt for getting me started on this. My solution is pretty barbones, but it works for me.


1. Download the DHCP code from http://www.isc.org/.

2. Expand the package. I used /sbin as the directory.
sudo tar xcvf dhcp-X.XX

3. Change in to the new directory.

4. Build and install the package.
sudo ./configure
sudo make
sudo make install

5. Add dhcp.plist to /System/Library/LaunchDaemons
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>org.isc.dhcpd</string>
	<key>OnDemand</key>
	<false/>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/sbin/dhcpd</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>UserName</key>
	<string>root</string>
</dict>
</plist>
This is configured to launch on start up.

6. Configure dhcpd.conf
Here's a verison of what I used: Sample 1
Code:
## /etc/dhcpd.conf file 
## compiled by the infamous super-hacker unix guru kilowatt from macosx.com (you need this in the file for things to work :p )
## tweaked for fixed addresses by Chrispy.


option domain-name "Your_domain.com";
option domain-name-servers 66.66.77.88, 66.66.77.89;

##Check ddns?
ddns-update-style ad-hoc;


Authoritative;

##define the Subnet to be served.

subnet 192.168.1.0 netmask 255.255.255.0 {

##Define the DHCP address range to be served.

range 192.168.1.50 192.168.1.90;
default-lease-time 300000;
max-lease-time 350000;
option routers 192.168.1.1; 
}


## Fixed IP addresses the name isn't too important.  Just match the MAC address (hardware ethernet) the fixed-address to use.  Watch the semicolons.
host comp1 {
  hardware ethernet 00:11:22:33:44:55;
  fixed-address 192.168.1.2;
}

host comp2 {
  hardware ethernet 00:aa:bb:cc:dd:ee;
  fixed-address 192.168.1.3;
}

host comp3 {
  hardware ethernet 00:ee:dd:cc:bb:aa;
  fixed-address 192.168.1.4;
}

host router {
  hardware ethernet 00:aa:11:bb:22:cc;
  fixed-address 192.168.1.1;
}

Now dhcp should be availalbe using the service command, and you should be able to start and stop it normally. It should also launch at start up. If you want to turn it off, just edit the .plist.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A bit of nostalgia: A Salute to Mac OS X simX Apple News, Rumors & Discussion 31 March 24th, 2005 07:45 AM
DNS server on Mac OS X workstation nwelke Networking & Compatibility 1 August 29th, 2003 12:11 AM
HP Photosmart 1315 and USB Print Sharing zwheeloc Mac Classic System & Software 12 February 6th, 2003 09:20 PM
apps list Mac Osxtopus Mac OS X System & Mac Software 7 May 29th, 2002 12:31 PM
Apple: Forget XP, try the Mac tagliatelle Bob's Place 1 November 25th, 2001 07:12 AM


All times are GMT -5. The time now is 10:19 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.