弱智 发表于 2004-04-21 20:20

OpenBSD中作DHCP client时的问题

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


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

kinux 发表于 2004-04-21 20:47

OpenBSD中作DHCP client时的问题

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

弱智 发表于 2004-04-21 21:21

OpenBSD中作DHCP client时的问题

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

有些迷糊了。:D

弱智 发表于 2004-04-21 21:23

OpenBSD中作DHCP client时的问题

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

peter333 发表于 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

弱智 发表于 2004-04-21 21:49

OpenBSD中作DHCP client时的问题

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

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.

弱智 发表于 2004-04-22 12:42

OpenBSD中作DHCP client时的问题

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

dennis2 发表于 2004-04-22 13:55

OpenBSD中作DHCP client时的问题

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

send host-name "hostname";

peter333 发表于 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. Twofor 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;

弱智 发表于 2004-04-23 09:11

OpenBSD中作DHCP client时的问题

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

:D

thanx for ur help.
i'll try it later~~
页: 1 [2] 3
查看完整版本: OpenBSD中作DHCP client时的问题