Home > centOS, Fedora 12 > How to setup linux dhcp server

How to setup linux dhcp server

Fedora 12:

Step 1: Make sure the eth0 is with static ip and all informations correctly
– otherwise service dhcpd restart will always fail

Step 2:
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 “server-linux.info”;

# specify DNS’s hostname or IP address
option domain-name-servers dlp.server-linux.info;

# 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 ~]# /etc/rc.d/init.d/dhcpd start
Starting dhcpd:[ OK ]
[root@dlp ~]# chkconfig dhcpd on

For more details: http://www.server-world.info/en/note?os=Fedora_12&p=dhcp

Categories: centOS, Fedora 12 Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: