LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1260|回复: 5

[已解决][求助]用dhcpcd时遇到超时错误,会是哪些原因?

[复制链接]
发表于 2008-1-11 15:59:22 | 显示全部楼层 |阅读模式
WindowsXP在局域网正常,但Linux老超时弄到169的ip。
我是双网卡,eth0固定ip,内部用于samba。
eth1上局域网,要用dhcp。

add dhcpcd_eth1="-t 10 -I ''" in file /etc/conf.d/net

原因:
* Messages for package net-misc/dhcpcd-3.1.5-r1:

* You have installed dhcpcd with DUID support.
* Some DHCP server implementations require a MAC address only in the
* ClientID field. These DHCP servers should be updated to be RFC
* conformant. If you cannot do this, you can revert to the old
* behaviour by using the -I '' option OR building dhcpcd with the
* vram USE flag enabled.
 楼主| 发表于 2008-1-12 14:52:37 | 显示全部楼层
我主要是以前用固定IP,就把dhcp的组件卸载了, 现在网络调整后要换dhcp,临时emerge了dhcpcd却有问题. 当初装gentoo时dhcp是没问题的.
我需要提供哪些配置文件的信息?
回复 支持 反对

使用道具 举报

发表于 2008-1-12 15:50:32 | 显示全部楼层
请帖出/etc/conf.d/net
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 16:54:04 | 显示全部楼层
modules=( "dhcpcd" )
config_eth1=( "dhcp" )
dhcpcd_eth1="-t 10"
dhcp_eth1="release nodns nontp nonis"

config_eth0=( "10.32.12.1/24 brd 10.32.12.255" )

mac_eth0="00:11:EB:20:25:22"
mac_eth1="01:16:E6:8D:AC:12"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 18:49:54 | 显示全部楼层
* Some DHCP server implementations require a MAC address only in the
* ClientID field. These DHCP servers should be updated to be RFC
* conformant. If you cannot do this, you can revert to the old
* behaviour by using the -I '' option OR building dhcpcd with the
* vram USE flag enabled.

emerge了一下,发现这个, 用dhcpcd -I '' eth1 解决了.
如果我不想加vram编译,要如何修改 /etc/conf.d/net 加入 -I '' ?
回复 支持 反对

使用道具 举报

发表于 2008-1-12 18:55:40 | 显示全部楼层
在dhcpcd_eth1="  "里设,另外,我觉得你设的超时只有10s,可能太短了些。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表