特殊的ADSL上网模式及dhcpcd和dhclient的关系
各位,先说一下我们这里的环境。。
河南网通ADSL,普通ADSL拨号程序,不可以。。。
由它提供的一个拨号程序ECOU(java程序),认证上网,它调用dhcpcd(dhcp客户端),先获取内网IP,认证成功后,获得公网IP,
但是会大约10分钟掉线,看了windows下,客户端会10分钟renew一次,100分钟release(续约)一次。
我用的Fedora1,DHCP开机获取IP(其实拨号程序用了dhcpcd没有用系统启动的dhclient)。
因为老是断,我尝试了dhclient它来renew,dhcpcd进程还存在,
在终端输入命令
/sbin/dhclient -1 -d -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
以下在/var/log/messages得到:
Nov 7 22:18:06 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 22:18:06 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 22:18:06 localhost dhclient: bound to 221.13.150.119 -- renewal in 559 seconds.
Nov 7 22:27:25 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 22:27:25 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 22:27:25 localhost dhclient: bound to 221.13.150.119 -- renewal in 585 seconds.
Nov 7 22:37:10 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 22:37:10 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 22:37:10 localhost dhclient: bound to 221.13.150.119 -- renewal in 537 seconds.
Nov 7 22:46:07 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 22:46:07 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 22:46:07 localhost dhclient: bound to 221.13.150.119 -- renewal in 546 seconds.
Nov 7 22:55:13 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 22:55:13 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 22:55:13 localhost dhclient: bound to 221.13.150.119 -- renewal in 504 seconds.
Nov 7 23:03:37 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 23:03:37 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 23:03:37 localhost dhclient: bound to 221.13.150.119 -- renewal in 563 seconds.
Nov 7 23:13:00 localhost dhclient: DHCPREQUEST on eth0 to 218.29.0.231 port 67
Nov 7 23:13:00 localhost dhclient: DHCPACK from 218.29.0.253
Nov 7 23:13:00 localhost dhclient: bound to 221.13.150.119 -- renewal in 569 seconds.
但是,这样的情况只在我机子上实现的。。。由于我属于技术残疾。
在同事家,相同环境中,有成功过,但不定。
是否是端口问题?还是别的问题??希望各位高手给予指点!
我在2000下
查的。
C:\>;ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : home
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI Ethernet Adap
ter
Physical Address. . . . . . . . . : 52-53-AB-06-EF-61
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 61.54.76.16
Subnet Mask . . . . . . . . . . . : 255.255.255.224
Default Gateway . . . . . . . . . : 61.54.76.30
DHCP Server . . . . . . . . . . . : 218.29.0.231
DNS Servers . . . . . . . . . . . : 202.102.224.68 202.102.227.68
Lease Obtained. . . . . . . . . . : 2004年11月3日 14:50:42
Lease Expires . . . . . . . . . . : 2004年11月3日 16:30:42
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论