LinuxSir.cn,穿越时空的Linuxsir!

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

仍然上不了网,各位帮忙看看本人drcom.conf的配置

[复制链接]
发表于 2005-11-18 21:05:28 | 显示全部楼层 |阅读模式
装上了libdrcom-0.0-20050423-2和drcomsuite-0.1.12后

执行命令:
#modprobe drcom
#drcomc login
提示:
1132315812 DEBUG drcomc:Creating Socks...
1132315812 DEBUG drcomc:Connecting...
drcomc:connect:No such file or directory

由于配置drcom.conf时很多不是很清楚,麻烦各位看看:
=======================================
#
# This is the config file for drcom.
#
# Please read these notes before even attempting
# to edit this file:
# + Lines beginning with '#' are ignored.
# + Blank Lines are ignored.
# + Lines with more than 256 characters on it are
# just stripped.
# + Valid characters are: a-z, A-Z, 0-9, space
# and this set [#_=.,:]
# + This file is not syntax-checked, so you'll have
# to edit it properly. I don't think you'll try to
# do a buffer-overflow attack on your own machine.
# + Spaces get squeezed, so don't be afraid.
# + Unless otherwise specified, every variable must
# be specified exactly once.
# + Variables that have default values don't need to
# appear at all, but it's recommended that they do.
#

# Username and password
# A blank password is considered valid.
username=
password=

# Interface information

# mac is the MAC address of the nic we use to connect
# to the server.
# Example:
# mac=1a:2b:3c:4d:5e:6f
# If left blank it will default to 00:00:00:00:00:00

mac=               /*1、这里填的是我机器的网卡还是登陆网关的?*/

# nicn is the nth nic. This is the real data that's
# passed to the server, and thus I suggest you only
# fill in the first nic.
# Example:
# nic0=192.168.0.1
# nic1=
# nic2=
# nic3=
# Only nic0 is mandatory; the others should normally
# be left blank.

nic0=                 /*2、这里填的是DHCP分配给我的内网ip吗?*/
nic1=
nic2=
nic3=

# dnsp(rimary) and dnss(econdary).

dnsp=
dnss=

# dhcp server address. Windows XP uses 255.255.255.255
# and Windows 2000 uses 0.0.0.0
# If left blank it defaults to 255.255.255.255

dhcp=

# Connection information
# If the network supports it, and serverip is set
# to 1.1.1.1, then the gateway will help us find
# the real server (beex said this was the reason
# why we had to upgrade, but I don't see the
# practical reason why)
# All are optional, if left blank, then:
# + hostip defaults to nic0
# + servip defaults to 1.1.1.1
# + hostport defaults to 61440 (0xf000)
# + servport defaults to 61440 (0xf000)
# Note: hostip can be given one of the special values
# eth0, eth1, eth2, ... eth9 (I don't think
# regular users would need eth10 ), which
# corresponds to the inet address of the
# interface.

hostip=                       /*3、hostip和servip要填什么?*/
servip=
hostport=
servport=

# Miscellaneous Machine Information
# We don't need to be honest about these.
# For example, Windows XP has a version number
# of 5.1 and a build number of 2600.
# All are optional, if left blank, then:
# + hostname defaults to "localhost"
# + winver defaults to 5.1
# + winbuild defaults to 2600
# + servicepack defaults to "Service Pack 2"

hostname=                    /*4、这四个都不用填是吗?*/
winver=
winbuild=
servicepack=
================================================
我们网络是通过一个代理出去的,我在84段,内网ip是192.168.84.11,网关192.168.84.1
麻烦各位朋友帮忙!
 楼主| 发表于 2005-11-19 11:25:20 | 显示全部楼层
晚上又试了试:
#drcomcd
Error digesting configuration
#drcomc login
...
1132320631 DEBUG drcomc:sending login command
1132320631 DEBUG drcomc:Receving reply (login)...
login failed
reason:0

我在windows下已经将drcom注销了。搞了很久都不知道怎么可以用,懂的朋友帮忙看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 08:15:19 | 显示全部楼层
按照这个Dr.COM--配置问题http://www.linuxsir.cn/bbs/showt ... amp;highlight=drcom)中的
Post by redsonic
mac是你的网卡的物理地址,用ifconfig命令查看。nicX你只需要填写nic0=你的网卡ip的地址(最好把你地址设成固定的,这样不用改了),dnsp=你的dns地址。hostip用来指定你的上网的网卡。servip指定服务器ip(1.1.1.1就可以了,服务器会自动响应此ip的,所以不用去查服务器的真正地址)。hostport,servport分别指定认证消息端口地址,drcom默认的是61440,一般就是这个值.hostname=localhost
winver=5.1
winbuild=2600
servicepack=Service Pack 2
都是客户机的信息,没有实际用途,默认的就行
总之你只需要配置nic0= dnsp= dnss= username= password= 就行了


配置完后
#drcomcd
Error digesting configuration
#drcomc login
1132320631 DEBUG drcomc:Creating Socket...
1132320631 DEBUG drcomc:Connecting...
1132320631 DEBUG drcomc:sending login command
1132320631 DEBUG drcomc:Receving reply (login)...
login failed
reason:0

1、在原来的dr.com上网解决方案http://www.linuxsir.cn/bbs/showt ... amp;highlight=drcom)中提到这个问题是因为没有注销并且启动很快就会出现这种情况。
我在windows下已经将drcom注销了。反复尝试也上不了网

2、另外还有那个“Error digesting configuration”,我已按照说明填上参数,不知什么地方又错了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 10:59:15 | 显示全部楼层
......
回复 支持 反对

使用道具 举报

发表于 2005-11-20 11:18:11 | 显示全部楼层
# mac is the MAC address of the nic we use to connect
# to the server.
# Example:
# mac=1a:2b:3c:4d:5e:6f
# If left blank it will default to 00:00:00:00:00:00

mac= /*1、这里填的是我机器的网卡还是登陆网关的?*/    是自己机器的MAC地址
nic0= 192.168.84.11  /*2、这里填的是DHCP分配给我的内网ip吗?*/  是的;

hostip=192.168.84.11  /*3、hostip和servip要填什么?*/ 这个不用填写,也可以添写自己机器的IP ,因为默认是nic0;
servip= 192.168.84.1
hostport=
servport=
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 12:55:52 | 显示全部楼层
谢谢!
但问题还在!我确认已将参数正确设置,但是还是连不上网!

如果输入:
#modprobe drcom
#drcomc login
......connect:connect refused

如果输入
#drcomcd
....../var/log/drcomcd
#drcomc login
......Creating Socket...
......Connecting...
......sending login command
......Receving reply (login)...
接着只剩光标在闪了。。。

本人实在找不到可参考的帖了,还得麻烦知道的朋友帮个忙

PS:真的十分感激 北南南北 的热心,谢谢你。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 17:23:23 | 显示全部楼层
终于可以上网了!
把我的经验总结下,方便其他朋友~~
我的情况是:
1、我的GCC是3.多的,所以要去掉-Wetra选项才可以正确make
2、一定要填dnss,否则出错
3、servip=           不能填,填了反而上不了

问题很小,麻烦去不小,希望对各位有帮助。
回复 支持 反对

使用道具 举报

发表于 2005-11-20 18:47:26 | 显示全部楼层
贺一个先。。。
回复 支持 反对

使用道具 举报

发表于 2005-11-20 20:29:52 | 显示全部楼层
我想楼主是没仔细看DRCOM的DOC.
回复 支持 反对

使用道具 举报

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

本版积分规则

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