티스토리 뷰

Fedora 18 DNS Server DHCP Server

 

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@otaec ~]# yum -y install dhcp


[root@otaec ~]# vi /etc/dhcp/dhcpd.conf

# Add lines like below

# specify domain name

option domain-name "server.world";


# specify DNS's hostname or IP address

option domain-name-servers otaec.server.world;


# default lease time

default-lease-time 600;


# max lease time

max-lease-time 7200;


# this DHCP server to be declared valid

authoritative;


# specify network address and subnet mask

subnet 10.0.0.0 netmask 255.255.255.0 {


# specify the range of lease IP address

range dynamic-bootp 10.0.0.200 10.0.0.254;


# specify broadcast address

option broadcast-address 10.0.0.255;


# specify default gateway

option routers 10.0.0.1;

}


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

[root@otaec ~]# systemctl enable dhcpd.service 

댓글