As has been noted here in the past, WATTCP is technically not part of the
operating system,
it's a library that is linked in with the application program.
Wattcp *does* support DHCP and the line my_ip = DHCP should be all you need to
get DHCP running.
The key is that you need to make sure that the more recent update of wattcp has
been linked with your
application program.
What you should see with the config file below is that if DHCP fails you will
get an error message. If you
don't get an error message then it worked.
An alternative is to use Mike Brutman's mTCP DHCP program. Mike separates DHCP
into a separate
program which will tell you the IP selected. You could then edit your WATTCP
config file to match the IP
returned by the DHCP client program. The mTCP DHCP program will at least test
your hardware to verify
that things are working.
So to sum up: if your application program uses the right version of WATTCP
then you don't need to do anything,
run the program and it will tell you if DHCP fails.
-Original Message-
From: Lee Eric openlinuxsou...@gmail.com
To: freedos-user freedos-user@lists.sourceforge.net
Sent: Sun, Mar 13, 2011 7:10 am
Subject: Re: [Freedos-user] Help: How to enable networking in a FreeDOS client?
Any update here?
Eric
On Sat, Mar 12, 2011 at 11:40 PM, Lee Eric openlinuxsou...@gmail.com wrote:
Hi,
I installed FreeDOS with wattcp and FreeDOS has recognized the
ethernet interface in the system. However, how can I get DHCP IP from
the server? Here's C:\AUTOEXEC.BAT file content.
@echo off
SET dosdir=C:\FDOS
REM C:\FDOS\BIN\BANNER2
REM C:\FDOS\BIN\BLACKOUT
set PATH=%dosdir%\bin
set NLSPATH=%dosdir%\NLS
set HELPPATH=%dosdir%\HELP
set temp=%dosdir%\temp
set tmp=%dosdir%\temp
SET BLASTER=A220 I5 D1 H5 P330
REM ShsuCDhd /QQ /F:C:\FDBOOTCD.ISO
if not %config%==4 REM LH VIAUDIO
if not %config%==4 REM LH VIAFMTSR
if not %config%==4 LH FDAPM APMDOS
if %config%==2 LH SHARE
if not %config%==4 ShsuCDX /QQ /~ /D:?FDCD0002 /D:?FDCD0003 /D:?CDRCACH0
SET autofile=C:\autoexec.bat
alias reboot=fdapm warmboot
alias halt=fdapm poweroff
SET CFGFILE=C:\fdconfig.sys
echo type HELP to get support on commands and navigation
echo.
echo Welcome to FreeDOS
echo.
if not %config%==4 mouse
C:\FDOS\drivers\net\crynwr\rtspkt 0x60
SET WATTCP.CFG=%DOSDIR%\BIN
And here's wattcp.cfg file content.
my_ip = dhcp
netmask = 255.255.255.0
gateway = 0.0.0.0
domain_list = your.domain.com
So what commend I shall execute to get the IP address by DHCP?
Thanks very much.
Eric
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user