Ubuntu 11.04
Sponsored Link

DHCP Server2011/04/30

  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
aptitude -y install dhcp3-server

vi /etc/dhcp/dhcpd.conf

# line 16: specify domain name

option domain-name

# line 17: specify nameserver's hostname or IP address

option domain-name-servers

# line 24: uncomment


# add at the last

# specify network address and subnet-mask

subnet netmask {
# specify default gateway

option routers;

# specify subnet-mask

option subnet-mask;

# specify the range of leased IP address

range dynamic-bootp;


/etc/init.d/isc-dhcp-server start

* Starting ISC DHCP server dhcpd
[ OK ]

[2] Configure on client PC. This example is on Windows 7. Open network settings and select "internet protocol" and click "property" button.
[3] Check boxes like below, then IP address is re-configured automatically.
[4] See the network status. Automatical configuration is done.
Matched Content