
AM; Reviewed:
WCH 3/18/2004
Solution & Interoperability Test Lab Application Notes
© 2004 Avaya Inc. All Rights Reserved.
6 of 10
Linux-DHCP.doc
Step Description
5.
Add the scope information for the voice and data networks to the “dhcpd.conf” file. The scope
information should follow the ad-hoc DNS update scheme command configured in Step 4:
ddns-update-style ad-hoc;
option option-176 code 176 = string;
shared-network data {
subnet 178.16.13.0 netmask 255.255.255.0 {
option routers 178.16.13.1;
option broadcast-address 178.16.13.255;
option option-176 "L2Q=1,L2QVLAN=120";
range 178.16.13.100 178.16.13.250;
}
}
shared-network voice {
subnet 178.16.12.0 netmask 255.255.255.0 {
option routers 178.16.12.1;
option broadcast-address 178.16.12.255;
option option-176 "MCIPADD=178.16.12.21,MCPORT=1719,TFTPSRVR=178.16.13.100";
range 178.16.12.100 178.16.12.250;
}
}
Save the “dhcpd.conf” file.
6.
Check if there is a “dhcpd.leases” file in the “/var/lib/dhcp” directory. If the file doesn’t
exist, use the “touch /var/lib/dhcp/dhcpd.leases” command to create it. The DHCP server
uses the “dhcpd.leases” file to store information about current leases.
7.
If the Red Hat Linux server has more than one network interface attached to the system, the
DHCP server can be configured to only start on one of the interfaces by adding the name of the
interface to the list of “DHCPDARGS” in the “/etc/sysconfig/dhcpd” file.
# Command line options here
DHCPDARGS=eth0
Save the “/etc/sysconfig/dhcpd” file.
8.
Use the “chkconfig --level 5 dhcpd on” command to configure the “dhcpd” service to run
automatically at boot-up time.
9.
Start the DHCP server by running the “service dhcpd start” command.
#[root@cvlan1 root]# service dhcpd start
Starting dhcpd: OK ]
[root@cvlan1 root]#
Note: The DHCP server can be started in debug mode using the “dhcpd –d -f” command.
Comentarios a estos manuales