FW: Config help!
Elliott Bujan
ebujan at initialplants.com
Mon Apr 3 19:32:00 UTC 2006
I hate to see when this happens but the server is back up assigning
addresses to my subnets and I don't know what made it to work.
From working with a couple of you guys (thanks a lot for your time put
aside) I made these changes as suggested:
- took the shared-network statement
- instead of using the script in /etc/rc.d/init.d/ I used:
/usr/sbin/dhcp -cf /etc/dhcpd.conf -lf /var/lib/dhcp/dhcpd.leases start |
stop (didn't work)
- I put the authoritative statement in the global section, I had it inside
each subnet.
After making these changes I saw in the log that it wasn't working.
Sometime while I was making the changes, it decided to work. I am still not
able to start/stop the server with the script.
One other change I made this morning that I know was after the fact, was to
define a subnet for my ip phones (they run on a vlan at the Corporate
network and use a separate MS dhcp with their own scope) like this:
shared-network INITIAL {
# Subnet: Corporate
subnet 192.9.200.0 netmask 255.255.255.0 {
option routers 192.9.200.241;
range 192.9.200.50 192.9.200.97;
range 192.9.200.116 192.9.200.199;
option broadcast-address 192.9.200.255;
}
# Subnet: IPPhonesCorporate
subnet 172.16.99.0 netmask 255.255.255.0 {
}
}
After all this headache, I decided to move the dhcp services down to the
router at each location and only keep my corporate subnet.
Sorry I have no solution or a concrete fix.
Elliott Bujan
-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On Behalf
Of Simon Hobson
Sent: Friday, March 31, 2006 1:15 PM
To: dhcp-users at isc.org
Subject: RE: FW: Config help!
Elliott Bujan wrote:
>This is the output for ifconfig
>[root at frank sbin]# ./ifconfig
>eth0 Link encap:Ethernet HWaddr 00:06:29:4E:EF:94
> inet addr:192.9.200.19 Bcast:192.9.200.255
>Mask:255.255.255.0
So you MUST have a subnet declaration for 192.9.200.0/24.
Looking back at the original message, I see that you do in fact have this :
># Subnet: Corporate
>
> subnet 192.9.200.0 netmask 255.255.255.0 {
>
> option routers 192.9.200.241;
>
> range 192.9.200.50 192.9.200.97;
>
> range 192.9.200.116 192.9.200.199;
>
> }
>. /etc/sysconfig/dhcpd
>+ . /etc/sysconfig/dhcpd
>DHCPDARGS=eth0
>++ DHCPDARGS=eth0
This is the bit of interest. The config file is /etc/sysconfig/dhcpd, and
the variable DHCPDARGS is set to "eth0"
Everything looks OK, assuming of course that you did correctly remove
the shared-network statement. What happens if you issue
"/etc/rc.d/init.d/dhcpd start" now ?
Actually, I can see from the last listing :
>+ RETVAL=0
>+ echo
>
>+ '[' 0 -eq 0 ']'
>+ touch /var/lock/subsys/dhcpd
>+ return 0
>
>exit $RETVAL
>+ exit 0
that it did in fact startup.
So you should now be running OK ?
Simon
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the dhcp-users
mailing list