亚洲韩日午夜视频,欧美日韩在线精品一区二区三区,韩国超清无码一区二区三区,亚洲国产成人影院播放,久草新在线,在线看片AV色

您好,歡迎來到思海網絡,我們將竭誠為您提供優質的服務! 誠征網絡推廣 | 網站備案 | 幫助中心 | 軟件下載 | 購買流程 | 付款方式 | 聯系我們 [ 會員登錄/注冊 ]
促銷推廣
客服中心
業務咨詢
有事點擊這里…  531199185
有事點擊這里…  61352289
點擊這里給我發消息  81721488
有事點擊這里…  376585780
有事點擊這里…  872642803
有事點擊這里…  459248018
有事點擊這里…  61352288
有事點擊這里…  380791050
技術支持
有事點擊這里…  714236853
有事點擊這里…  719304487
有事點擊這里…  1208894568
有事點擊這里…  61352289
在線客服
有事點擊這里…  531199185
有事點擊這里…  61352288
有事點擊這里…  983054746
有事點擊這里…  893984210
當前位置:首頁 >> 技術文章 >> 文章瀏覽
技術文章

Linux操作系統下 架設DHCP服務器的方法

添加時間:2011-1-26  添加: admin 

1、OS系統版本

[root@server ~]# more /etc/redhat-release

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

 

2、查看系統是否已經安裝DHCP服務端軟件

[root@server ~]# rpm -qa | grep dhcp

dhcpv6_client-0.10-14_EL4

 

3、將光盤mount上去,然后安裝DHCP服務端軟件

[root@server ~]# mount /media/cdrom

mount: block device /dev/hdc is write-protected, mounting read-only

[root@server RPMS]# find /media/cdrom -name "dhcp*"

/media/cdrom/RedHat/RPMS/dhcpv6-0.10-14_EL4.i386.rpm

/media/cdrom/RedHat/RPMS/dhcpv6_client-0.10-14_EL4.i386.rpm

/media/cdrom/RedHat/RPMS/dhcp-3.0.1-58.EL4.i386.rpm

/media/cdrom/RedHat/RPMS/dhcp-devel-3.0.1-58.EL4.i386.rpm

[root@server RPMS]# rpm -ivh /media/cdrom/RedHat/RPMS/dhcp-3.0.1-58.EL4.i386.rpm

[root@server RPMS]# rpm -qa | grep dhcp

dhcp-3.0.1-58.EL4

dhcpv6_client-0.10-14_EL4

 

到這兒已經安裝成功了,哈哈

 

4、查看一下,都有那些文件

[root@server RPMS]# rpm -ql grep dhcp

...

/etc/dhcpd.conf ----------------------------dhcp配置文件

/etc/rc.d/init.d/dhcpd

/etc/rc.d/init.d/dhcrelay

/etc/sysconfig/dhcpd

/etc/sysconfig/dhcrelay

/usr/bin/omshell

/usr/sbin/dhcpd

/usr/sbin/dhcrelay

/usr/share/doc/dhcp-3.0.1

/usr/share/doc/dhcp-3.0.1/README

/usr/share/doc/dhcp-3.0.1/RELNOTES

/usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample-----dhcp配置文件的模板

/usr/share/man/man1/omshell.1.gz

/usr/share/man/man5/dhcp-eval.5.gz

/usr/share/man/man5/dhcpd.conf.5.gz

/usr/share/man/man5/dhcpd.leases.5.gz

/usr/share/man/man8/dhcpd.8.gz

/usr/share/man/man8/dhcrelay.8.gz

/var/lib/dhcp

/var/lib/dhcp/dhcpd.leases -----------------分配IP的那個日志文件

 

5、[root@server RPMS]# more /etc/dhcpd.conf

這兒有沒有什么東東的,還是把模板文件COPY過來吧

[root@server RPMS]# cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf

 

6、查看配置文件,并根據自己的要求更改

[root@server RPMS]# more /etc/dhcpd.conf

ddns-update-style interim;

ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway

option routers 192.168.0.1;

option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";

option domain-name "wiscom.com.cn";

option domain-name-servers 219.141.136.10,211.147.6.3;

option time-offset -18000; # Eastern Standard Time

# option ntp-servers 192.168.1.1;

# option netbios-name-servers 192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

# option netbios-node-type 2;

range dynamic-bootp 192.168.0.128 192.168.0.254;

default-lease-time 21600;

max-lease-time 43200;

# we want the nameserver to appear at a fixed address

host ns {

next-server marvin.redhat.com;

hardware ethernet 12:34:56:78:AB:CD;

fixed-address 207.175.42.254;

}

}

 

上面都已經很明了,該配置的都配置了

 

7、啟動DHCP服務器啦

[root@server RPMS]# service dhcpd start

Starting dhcpd: [ OK ]

 

8、查看日志,看看是否有錯

[root@server RPMS]# tail -20 /var/log/messages

Dec 9 18:05:19 server dhcpd: Wrote 0 deleted host decls to leases file.

Dec 9 18:05:19 server dhcpd: Wrote 0 new dynamic host decls to leases file.

Dec 9 18:05:19 server dhcpd: Wrote 0 leases to leases file.

Dec 9 18:05:19 server dhcpd: Internet Systems Consortium DHCP Server V3.0.1

Dec 9 18:05:19 server dhcpd:

Dec 9 18:05:19 server dhcpd: Copyright 2004 Internet Systems Consortium.

Dec 9 18:05:19 server dhcpd: All rights reserved.

Dec 9 18:05:19 server dhcpd: For info, please visit http://www.isc.org/sw/dhcp/

Dec 9 18:05:19 server dhcpd: Wrote 0 deleted host decls to leases file.

Dec 9 18:05:19 server dhcpd: Wrote 0 new dynamic host decls to leases file.

Dec 9 18:05:19 server dhcpd: Listening on LPF/eth0/00:0c:29:c5:06:fc/192.168.0/24

Dec 9 18:05:19 server dhcpd: Wrote 0 leases to leases file.

Dec 9 18:05:19 server dhcpd: Listening on LPF/eth0/00:0c:29:c5:06:fc/192.168.0/24

Dec 9 18:05:19 server dhcpd: Sending on LPF/eth0/00:0c:29:c5:06:fc/192.168.0/24

Dec 9 18:05:19 server dhcpd: Sending on LPF/eth0/00:0c:29:c5:06:fc/192.168.0/24

Dec 9 18:05:19 server dhcpd:

Dec 9 18:05:19 server dhcpd: Sending on Socket/fallback/fallback-net

Dec 9 18:05:19 server dhcpd: Sending on Socket/fallback/fallback-net

Dec 9 18:05:19 server dhcpd:

Dec 9 18:05:20 server dhcpd: dhcpd startup succeeded

關鍵詞:DHCP  服務器  架設

分享到:

頂部 】 【 關閉
版權所有:佛山思海電腦網絡有限公司 ©1998-2024 All Rights Reserved.
聯系電話:(0757)22630313、22633833
中華人民共和國增值電信業務經營許可證: 粵B1.B2-20030321 備案號:粵B2-20030321-1
網站公安備案編號:44060602000007 交互式欄目專項備案編號:200303DD003  
察察 工商 網安 舉報有獎  警警  手機打開網站