Make a DHCP server using Fedora - Help

Sam Varshavchik mrsam at courier-mta.com
Sat Nov 15 01:23:02 UTC 2008


Antonio Olivares writes:

> [root at localhost network-scripts]# ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:0E:A6:42:59:AF  
>           inet addr:10.154.19.210  Bcast:10.154.19.255  Mask:255.255.255.0

Your eth0 has ip 10.154.19.210

> [root at localhost ~]# dhcpd -f
> Internet Systems Consortium DHCP Server 4.0.0
> Copyright 2004-2007 Internet Systems Consortium.
> All rights reserved.                            
> For info, please visit http://www.isc.org/sw/dhcp/
> Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file                                                          
> Wrote 0 class decls to leases file.                                             
> Wrote 0 deleted host decls to leases file.                                      
> Wrote 0 new dynamic host decls to leases file.                                  
> Wrote 0 leases to leases file.                                                  
> 
> No subnet declaration for eth0 (10.154.19.210).

dhcpd is telling you, right here, what's broken.

> # This is a very basic subnet declaration.
> 
> subnet 10.254.239.0 netmask 255.255.255.224 {
>   range 10.254.239.10 10.254.239.20;         
>   option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
> }                                                                 

What's this? Your eth0's IP address is 10.154.19.210. You need remove all 
subnet declarations in dhcp.conf, and provide a subnet declaration for 
10.154.19.0/24


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081114/494c15b6/attachment-0001.sig>


More information about the fedora-list mailing list