Chinaunix首页 | 论坛 | 博客
  • 博客访问: 346555
  • 博文数量: 102
  • 博客积分: 3140
  • 博客等级: 中校
  • 技术积分: 680
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-28 11:44
个人简介

开阔未来

文章分类

全部博文(102)

文章存档

2015年(10)

2014年(1)

2013年(1)

2012年(4)

2011年(8)

2010年(24)

2009年(51)

2008年(3)

我的朋友

分类: LINUX

2009-02-03 17:17:33

How to install DHCP Server on Ubuntu Server 6.06

Published May 20, 2007 UNIX & Linux

Assumed that “eth0″ is the interface for network card

IP Address Range: 192.168.0.100 to 192.168.0.200

Subnet Mask: 255.255.255.0

DNS Servers: 202.188.0.133, 202.188.1.5

Domains: tm.net.my

Gateway Address: 192.168.0.1

sudo apt-get install dhcp3-server
sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup
gksudo gedit /etc/default/dhcp3-server

  • Find this line

...
INTERFACES=""

  • Replace with the following line

INTERFACES="eth0"

  • Save the edited file

sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup
gksudo gedit /etc/dhcp3/dhcpd.conf

  • Find this section

...
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org; default-lease-time 600;
max-lease-time 7200;
...

  • Replace with the following lines

# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org; #default-lease-time 600;
#max-lease-time 7200;

  • Find this section

...
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
...

  • Replace with the following lines

# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 202.188.0.133, 202.188.1.5;
option domain-name "tm.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}

  • Save the edited file

sudo /etc/init.d/dhcp3-server restart

Possibly related posts: (automatically generated)

  • Installing and configuring NO-IP Client on Ubuntu 6.06.
  • Cara Install DHCP Server pada Ubuntu
  • dhcp
  • DHCP sederhana

0 Responses to “How to install DHCP Server on Ubuntu Server 6.06”

Feed for this Entry Trackback Address

阅读(861) | 评论(0) | 转发(0) |
0

上一篇:Ubuntu下tftp的安装

下一篇:rc.local

给主人留下些什么吧!~~