免费注册 查看新帖 |

Chinaunix

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

[OpenBSD] OpenBSD中作DHCP client时的问题 [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-19 21:45 |只看该作者 |正序浏览
如题,purge今天碰到问题:
在一台双网卡pc上面设置NAT;
安装到网卡设置,外网网卡是dhcp client,
系统也能自动侦测出DHCP 服务器是10.0.0.2,
但是迟迟不能分配到地址,(在linux和winxp都可以分配到10.3.5.x)
出现"Invalid lease option",
然后结束。

也找了google和 bsdforums.org上面的一些,不太明白。
望指教,谢谢。

论坛徽章:
0
22 [报告]
发表于 2013-03-15 03:14 |只看该作者
#dhclient interfack

#man 8 dhclient

:wink:

论坛徽章:
0
21 [报告]
发表于 2004-04-26 03:40 |只看该作者

OpenBSD中作DHCP client时的问题

我没用过OpenBSD,但我用FreeBSD也是使用动态IP的,也是有两张网卡。我发现FreeBSD使用DHCP时需要调动/sbin/dhclient-script,你可以检查一下这个文件。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
20 [报告]
发表于 2004-04-23 09:11 |只看该作者

OpenBSD中作DHCP client时的问题

hmmm,
i install OBSD by cdrom,
but now this issue makes me deadlock~~



thanx for ur help.
i'll try it later~~

论坛徽章:
0
19 [报告]
发表于 2004-04-22 22:35 |只看该作者

OpenBSD中作DHCP client时的问题

Hi, there,
you said: you can see the correct default gateway, right? But after that, everything should be automatic. How come can't get dynamic IP ? It really makes my head crack.
How did you install your OB? I mean by CD or boot from a floppy and install by FTP ( I used this one)? I installed my OB in our LAN. There are three networks in our router. Two  for outside, one for internal ( IP is 192.168.1.1 ). So, I give you my dhclient.conf. Maybe can give you any idea. It is default setting and I didn't change it.

dhclient.conf:
...
initial-level 1;
send host-name "peter";
request subnet-mask,
              broadcast-address,
              routers,
              dimain-name,
              domain-name-servers,
              host-name;

论坛徽章:
0
18 [报告]
发表于 2004-04-22 13:55 |只看该作者

OpenBSD中作DHCP client时的问题

我觉得多半还是 /etc/dhclient.conf 的问题。试试加上

send host-name "hostname";

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
17 [报告]
发表于 2004-04-22 12:42 |只看该作者

OpenBSD中作DHCP client时的问题

已经把vr0和rl0更换了,也不行,一样的提示。
看样子和网卡的质量无关。
只好手动设置了静态ip地址用着先。
谢谢。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
16 [报告]
发表于 2004-04-21 21:49 |只看该作者

OpenBSD中作DHCP client时的问题

to peter333:
something wrong with my NIC?
maybe is the ........ QUALITY of NIC

i use the NIC which vendor sting is "VIA Rhine III" and OBSD alias it as "vr0", just link into the external server gives me dynamic ip address.

another NIC for my private network, uses the NIC which the chipset's "Realtek 8139D", it works better for internal link.

论坛徽章:
0
15 [报告]
发表于 2004-04-21 21:41 |只看该作者

OpenBSD中作DHCP client时的问题

原帖由 "弱智" 发表:
重新安装到设置网卡的地方,设置为dhcp方式获取ip地址就出现这样的提示:
DHCPOFFER 10.0.0.2,
这是正确的dhcp网关地址;
但是随后迟迟不能获得本地ip地址。
而且这还未到拷贝文件那一步,所以,应该是和pf没有..........

You are right. It's not PF problem. Yesterday, I installed Openbsd 3.4 by FTP in our LAN. Just setup outdide network interface to "dhcp". That's it. It works great.
For your situation, did you connect the cable? or something wrong with your network card? or something wrong with your connection?

later

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
14 [报告]
发表于 2004-04-21 21:23 |只看该作者

OpenBSD中作DHCP client时的问题

自己觉得还是要再看看FAQ。
再次谢谢诸位弟兄的提示和帮助。
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP