免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1438 | 回复: 0
打印 上一主题 下一主题

DHCP (again) [复制链接]

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-09 17:07 |只看该作者 |倒序浏览

The following are the best DHCP resources I have found.  Most of these are specific to Road Runner cable service but should be applicable to any cable service.   Please tell me about any other DHCP resources you find.
I would recommend the FreeBSD link below over what I've done.  I think that article does a better job of documenting what needs to be done.  My stuff is spread over several documents and should be consolidated into a single resource.  At the moment, that is at the top of a long list of low priorities.
ISC Dynamic Host Configuration Protocol (DHCP)
Developers and maintainers of DHCP software.  But use the ports first.  See the next link.
Setting up a DHCP client on FreeBSD
Specific to FreeBSD.
Road Runner Cable Internet Modem Service
Contains a list of Road Runner cities with the login program for each.
RRLinux Help Site
For Linux, but again, should be universal.
22 August 1998
It's time to reinstall the DHCP client.  Again.  Pity I can't get that other drive running.  Then I'd just copy it from there.  Shame, really.
Preparing the kernel
After almost a week off, I'm back into it.  My next task is to install DHCP.   My main resource for this procedure is
Setting up a DHCP client on FreeBSD
.   I've followed it pretty much exactly as it appears.  The key points are:

  • recompile your kernel to contain:

pseudo-device bpfilter 4

  • Make the necessary devices.  But perhaps you should make sure they don't exist yet.   Check the output from the ls bpf* below and make only those devices which don't appear.

# cd /dev
# ls bpf*
# ./MAKEDEV bpf0 bpf1 bpf2 bpf3

  • Configure your /etc/dhclient.conf file.

# cp /usr/ports/net/isc-dhcp2/work/dhcp-2.0b1pl0/client/dhclient.conf /etc
Compiling the port
Well, the
DHCP install instructions
do say that DHCP is not straighforward to install.  And it isn't.  But I did the following and used CD #3 of FreeBSD 2.2.7.

Please note, that the following instructions contain extra steps.  See
Building a port - background info on make
for more concise information.
# mount -t cd9660 /dev/wcd0c /cdrom
# mkdir /usr/ports
# cd /usr/ports
# ln -s /cdrom/ports/distfiles distfiles
# cd /usr/ports/net/isc-dhcp2
# make
# make install
After all of that, it took me a while to figure out where the results were.  I knew the stuff had been built, but where was it?  [
see below
for more information about this search].  I found out by doing the following:
find dhclient . | grep dhclient
Which showed that what I wanted was to be found in:
/usr/ports/net/isc-dhcp2/work/dhcp-2.0b1p16/client
After going to that directory, I issued the dhclient ed0 command.  And surprise surprise surprise!  It worked.
NOTE: You might also want to use the locate command.
4 October 1998
I've been given some information about the make process above.  I had written that I was unable to locate the executable file after the "make install" had been run.  It turns out that dhclient is copied to /usr/local/sbin.   The copy I found in the work directory would be removed after doing a make clean.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_523830.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP