Fedora 15
Sponsored Link

DHCP Server2011/05/25

Configure DHCP ( Dynamic Host Configuration Protocol ) Server. If you make your linux computer DHCP server, it's neccesarry to disable DHCP function on router in LAN.
[1] Install and configure DHCP
[root@dlp ~]#
yum -y install dhcp
[root@dlp ~]#
vi /etc/dhcp/dhcpd.conf
# create new

# specify domain name

option domain-name
# pecify DNS's hostname or IP address

option domain-name-servers
# default lease time

default-lease-time 600;
# max lease time

max-lease-time 7200;
# this DHCP server to be declared valid

# specify network address and subnet mask

subnet netmask {
# specify the range of lease IP address

range dynamic-bootp;

# specify broadcast address

option broadcast-address;

# specify default gateway

option routers;

[root@dlp ~]#
systemctl start dhcpd.service
# start

[root@dlp ~]#
systemctl enable dhcpd.service
# set auto-start

[2] Configure on client. This example is on Windows 7. Open Network settings and go to the sacreen like below.
[3] Check boxes like below, then IP address is re-configured automatically.
[4] See the network status. Automatical configuration is done.
Matched Content