China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 23:46
中国DOS联盟论坛 » DOS媒体世界 & 网络技术 (多媒体室) » How do I get an 8139 network card working under DOS? I want to get online in pure DOS. View 5,374 Replies 27
Original Poster Posted 2003-04-15 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
I want to get online in DOS without starting Windows, on a LAN with automatic IP assignment. Can anyone tell me exactly how to do it?
Floor 2 Posted 2003-04-15 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
First load the 8139 network card's Packet driver, then run the browser. The 8139 network card's Packet driver can be downloaded from the RealTek website.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-04-16 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
Moderator, I finally managed to find the 8139's rtspkt.com, but when I run lynx, it says "Configuration file /dev/env/DJDIR/lib/lynx.cfg is not available." But at that point lynx.cfg is already in the root directory. I also downloaded this file from the website, and it still doesn't work Could you give me a hint what the reason is?
Floor 4 Posted 2003-04-16 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
By the way, one more question: how do you use rtspkt.com? *blush*。。

Sorry, we really know too little about DOS.
Floor 5 Posted 2003-04-17 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Try this:
RTSPKT 0x60
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 6 Posted 2003-04-17 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
Floor 7 Posted 2003-04-17 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Then first set the LYNX_CFG environment variable so that it points to the LYNX.CFG file.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 8 Posted 2003-04-17 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
Since I don't know DOS very well, I'll have to trouble the moderator a lot more :)
How do I set the LYNX_CFG environment variable so that it points to the LYNX.CFG file? In which file should I make the change?
Floor 9 Posted 2003-04-17 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
For example, if you put lynx.cfg under C:\lynx\, run lynx -cfg=c:\lynx\lynx.cfg
MSN:tiqit2@hotmail.com
Floor 10 Posted 2003-04-18 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
This is bad, following what Dark-Destroy said, it instead shows:
No nameserver defined!
No nameserver defined!
"sin_mask"is 0.0.0.0 !
Cannot set local ip-address
What should I do at this point?
Thanks a lot :)
Floor 11 Posted 2003-04-18 00:00 ·  中国 香港 有线宽频用户
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
Did you modify wattcp.cfg?
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 12 Posted 2003-04-19 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
To tell the truth, I also noticed it has something to do with this file, but after staring at it for a long time, I'm still totally confused. This file seems to configure DNS, the local IP, and other network options, but I really can't understand it

I sincerely hope the moderator can explain it with an example. For instance, post a configured wattcp.cfg and add a brief explanation :)
Sorry to trouble the moderator
Floor 13 Posted 2003-04-19 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
I tried changing the ip= value to dhcp, but I may not have grasped the key point. It still doesn't work. So I hope the moderator can post a modified file; that would be more intuitive.
Floor 14 Posted 2003-04-19 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Is it this one:

#
# Waterloo TCP/IP sample configuration file.
#
# Use this file as a template to make your own.
# This file should be located in "current directory" or in a directory
# pointed to by the environment variable "WATTCP.CFG".
#
# E.g. Put a copy of this file in "c:\net\watt\bin" and insert this
# line in your AUTOEXEC.BAT:
# set wattcp.cfg=c:\net\watt\bin
#
# Note 1: No trailing `\' at end of line, and no spaces around the `='.
#
# Note 2: The order of keywords/value pairs are significant.
# For instance, if you have "my_dns = 134.121.10.8" in your
# "c:\net\watt\bin\hosts" file, then "hosts = c:\net\watt\bin\hosts"
# MUST be listed before the line specifying your nameserver;
# "nameserver = my_dns". The same rule applies to "gateway" and "cookie"
#
# Note 3: the value (right of `=' is the default if you comment the
# line out. Comments starts with `#' or `;'. To use `#' or `;' inside
# string values, the string MUST be put in quotes.
# E.g. these keywords have different values:
# keyword1 = "hello world #;"
# keyword2 = "hello world "#;
#
# Note 4: The right-side value may contain an environment variable that
# will be expanded when read. The effect is like in makefiles.
# E.g. if environment variable "ETC" is "c:\net\watt\bin",
# "$(ETC)\hosts" becomes "c:\net\watt\bin\hosts" after
# expansion. See "README.TOO" for details.
#
# Note 5: Remember that all this text takes time to parse (especially on
# a 386 or older CPU). Cut down the contents of your "WATTCP.CFG" (not
# this file, a copy) to a minimum to improve speed.
#
#
# Text printed to screen (stdout).
#
# print = "Waterloo TCP/IP setup" ; optional key/value

#
# If using a fixed IP-address, insert the dotted decimal address below.
# If your LAN has a DHCP server, use "my_ip = dhcp".
# Likewise, if you want to get your IP-address via BOOTP or RARP servers.
#
# my_ip = 192.168.1.2 ; really is 0.0.0.0, mandatory
my_ip=dhcp

#
# The name of this host excluding the domain-name.
# Note: may be overridden by DHCP/BOOTP server.
# Max 50 characters.
#
# hostname = "random-pc" ; optional

#
# A better method would be to define it via the environment.
# If djgpp is installed and you have the djgpp `uname' program, then
# use $(COMPUTERNAME) if running under Windows for consistent names
# here.
#
#hostname = $(COMPUTERNAME)

#
# The netmask specifying the sub-net your are on.
# Note: may be overridden by DHCP/BOOTP server.
#
netmask = 255.255.255.0 ; mandatory if not using DHCP

#
# IP-address (or name) of DNS host(s). The DNS host's job is to
# translate hostnames to IP-addresses if the hostname isn't listed
# in "$(ETC)\hosts".
#
# Notes: DHCP/BOOTP servers may add additional nameservers to the one(s)
# you specify here.
# There are no default server. There can be a total of 10
# nameservers. All nameserver are queried in sequence until an
# IP-address is returned. Enter the "fastest" (closest) nameserver
# first for best result.
#
# nameserver = 0.0.0.0 ; primary DNS, mandatory if not using DHCP
# nameserver = 0.0.0.0 ; secondary DNS, optional

#
# The IP-address (or name) of your gateway.
# If you are running DOS-PPP with EtherNet emulation this should be
# replaced with $(REMIP). For SLIP or normal PPP, gateway is not used.
#
# The syntax is "ip-addr ]"
#
# Notes: Will most likely be overridden by DHCP/BOOTP server.
# The ARP-routing table is limited to 12 gateways.
#
# gateway = 0.0.0.0 ; mandatory if not using BOOTP/DHCP

...omitted below.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 15 Posted 2003-04-19 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 181
Posts 27
Joined 2003-04-10 00:00
23-year member
UID 1474
Gender Male
Status Offline
My lynx is in the aaa directory on drive C. If I run the following command:
lynx -cfg=c:\aaa\lynx.cfg www.163.com
it shows:
Looking up www.163.com first
Looking up www.163.com.com, guessing...
Looking up www.163.com.edu, guessing...
Looking up www.163.com.net, guessing...
Looking up www.163.com.org, guessing...
Can't Access `file://localhost/c:/aaa/www.163
Alert!: Unable to access document.

lynx: Can't access startfile
What seems to be the problem here?
Forum Jump: