免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 弱智
打印 上一主题 下一主题

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

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

OpenBSD中作DHCP client时的问题

这个已经看了。
但是,是在安装OBSD的时候第一次设置网卡时就是这样,
以后,自己手动设置了 etc/dhclient.conf 为:
send dhcp-lease-time 7200;
也不行。
看来还是要自己找找原因了。


谢谢dennis2、peter333、kinux兄的指教。

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

OpenBSD中作DHCP client时的问题

有用pf吗??
把pf停了试试..

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

OpenBSD中作DHCP client时的问题

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

有些迷糊了。

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

OpenBSD中作DHCP client时的问题

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

论坛徽章:
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
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.

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

OpenBSD中作DHCP client时的问题

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

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

OpenBSD中作DHCP client时的问题

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

send host-name "hostname";

论坛徽章:
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;

论坛徽章:
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~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP