|
#9
| ||||
| ||||
| Just a note with starting the server, you might need to mention the network adapter to listen on something like - dhcpd & ne0 |
|
#10
| |||
| |||
| 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? |
|
#11
| |||
| |||
| 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? |
|
#12
| ||||
| ||||
| 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. |
|
#13
| |||
| |||
| Don't try to install using the scripts if you have spaces in your path name. Quote:
>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 |
|
#14
| |||
| |||
| 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> 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. |
|
#15
| ||||
| ||||
| 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 |
|
#16
| |||
| |||
| 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:
|
![]() |
| Thread Tools | |
|
|
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 |