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

由 轩子 在 11-14-2004 22:46 发表:

特殊的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-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


P3 450MHz

PROA5

SD320M

SIS6232

FUJITSU MPD3064AT 6.4G

ST340014A 40G

YAMAHA719e

win2k & Slackware 10

面对未知的世界因恐惧而发抖


由 readk 在 11-14-2004

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus