LinuxSir.cn,穿越时空的Linuxsir!

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

特殊的ADSL上网模式及dhcpcd和dhclient的关系

[复制链接]
发表于 2004-11-14 22:46:05 | 显示全部楼层 |阅读模式
各位,先说一下我们这里的环境。。
河南网通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-54-AB-36-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
发表于 2004-11-14 23:28:42 | 显示全部楼层
能不能把你在linux下上河南网通的整个过程写出来??
我在rh9下现在还没有上去。用ppppoe一定不行吗??
 楼主| 发表于 2004-11-15 00:57:12 | 显示全部楼层
恐怕用pppoe不行,你听说过么??
不过你肯定听说过这个,就是说,用网通哪个东西,10分钟断线.
而且还说不知道怎么回事,不断,但不可重复.


我的在这里写了
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=145030
发表于 2004-11-15 01:39:17 | 显示全部楼层
河南人真痛苦,其他省份,就没有这些问题吗??
多谢多谢,没有发现这篇帖子。
 楼主| 发表于 2004-11-15 01:51:49 | 显示全部楼层
其他的没有吧..大多数是因为技术太差(比如我),,
我看了,我的题目大多是端口上的问题吧....
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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