快速业务通道

linuxcbt-dhcpd

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-03-28

###DHCPD###
Features:
1. Auto-configuration of IP client(s)
2. Include all sorts of settings: IPv4 IPv6
3. DHCP is an UDP application (UDP:67)

Tasks:
1. Reconfigure ''eth1'' to use: ''/27''
a. ''nano /etc/sysconfig/network-scripts/ifcfg-eth1'' - ''PREFIX=27

2. Install DHCP
a. ''yum -y install dhcp''
b. ''rpm -ql dhcp''
/etc/dhcp - container for DHCPD configuration
/etc/dhcp/dhcpd.conf - IPv4 config
/etc/dhcp/dhcpd6.conf - IPv6 config

/var/lib/dhcpd - container for leases
/var/lib/dhcpd/dhcpd.leases - IPv4 lease
/var/lib/dhcpd/dhcpd6.leases - IPv6 lease

3. Configure scope for: ''192.168.76.0/27'' - focilitates 2**5 -2 hosts
192.168.76.0 - Network address
192.168.76.1-30 - Usable
192.168.76.32 - broadcast

Note: Alter DHCPD to log using a different facility: i.e. ''local6'' becauses boot messages are logged via : ''local7''

4. Start/invoke ''eth1'' interface on: ''linuxcbtserv1''
Note: This will launch the ''dhcpclient'' process, which will request configuration via DHCP
a. ''ifup eth1''
inet addr:192.168.0.23 Bcast:192.168.0.255 Mask:255.255.255.0
''.224'' = ''/27''
''/24'' = ''.0''
''/25'' = ''.128''
''/26'' = ''.192''
''/27'' = ''.224''

5. Configre a reservation to ensure that: ''linuxcbtserv1'' is ALWAYS served the same address
a. ''nano /etc/dhcp/dhcpd.conf''

Note: DHCPD follows the DORA process:
D - Discovery (Client)
O - Offer (Server)
R - Request (Client)
A - Acknowledgement (Server)

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号