DOS Networking

Before You Begin

Take a moment to document your exciting network configuration
Download the MS-DOS NETWORK CLIENT DISK 1 & 2 from the DOWNLOAD section
A computer with MS-DOS installed on it.
Your network card is NDIS 2.0 compliant and you have the DOS network drivers for it
Note The Microsoft Network Client for MS-DOS works with any version of MS-DOS between 3.2 and 6.22 inclusive; however, you may need to refer to the manufacturer of the network interface card (NIC) for the version of MS-DOS the NIC requires.
After the files are copied onto both disks, the installation disk set is ready for use.

Running Setup on the Workstation

On the workstation that is already running MS-DOS (version 3.2 through 6.22), run Setup.exe from Disk #1 of the installation disk set.
At the Setup screen, press ENTER to continue with Setup. You will be prompted to provide a directory that will contain the networking files, and it is recommended that you use the default directory (C:\Net).
Provide the directory, and then press ENTER to continue.You will be prompted to select a network interface card (adapter). Select your adapter from the list, and then press ENTER.

If you do not find your network interface card in the list, choose Network adapter not shown on list below, and then press ENTER.
You will be prompted for the location of the network interface driver files.
These files are provided by the manufacturer of the network interface card.
The driver must be NDIS 2.0-compliant, and will be accompanied by an Oemsetup.inf file that is also provided by the manufacturer.
Press ENTER, and continue.You will be prompted for your user name.Type your user name, and then press ENTER.This will take you to the Setup menu.

The Setup Menu

The Setup menu gives you three options:

Change names: Allows you to change the user name, computer name, workgroup name, and the domain name.
Change Setup Options: Allows you to change the redirector option, startup options, logon type, and set hot keys.
Change network Configuration: Allows you to add and remove network adapters and protocols. It also allows you to change settings related to the protocol or network adapter.
Use the UP ARROW and DOWN ARROW keys to select an option, and then press ENTER. You will be given a new menu associated with your choice from above.

If all of the options have been set, select The listed options are correct, press ENTER, and the Setup program will complete the installation process. Depending on your selections, you might not use Disk #2 of the installation set.

The Change Name Menu

If you select Change names in the Setup menu, you will see the following menu.

The options for this menu are:

Change User name
Change Computer Name
Change Workgroup Name
Change Domain Name
The listed options are correct
Use the UP ARROW and DOWN ARROW keys to select an option, and then press ENTER. Type the new information in the field that follows, and then press ENTER. If all of the options have been set, select The listed options are correct, and press then ENTER to return to the Setup menu for new options, or to complete the installation process.

The Change Setup Options Menu

If you select Change Setup Options in the Setup menu, you will see the following menu.

The options for this menu are:

Change Redir Options: Choose either the full or basic redirector. The full redirector is used for logging on to a Microsoft Windows NT or LAN Manager domain, or if you run programs that use advanced network functions such as named pipes. The basic redirector provides all standard workgroup functions such as connecting and disconnecting. It uses less memory and disk space than the full redirector. You must use the basic redirector if your computer has an 8088 processor.

Change Startup Options: Allows you to configure the computer to automatically start the Microsoft Network Client for MS-DOS or both the Network Client and Pop-up Interface.

Change logon Validation: Allows you to choose whether to log on to a domain.

Change Net Pop hot Key: Allows you to select a particular key to used in conjunction with CTRL+ALT, to activate the pop-up interface.

Use the UP ARROW and DOWN ARROW keys to select an option, and then press ENTER. Change the options as necessary, and then press ENTER. If all of the options have been set, select The listed options are correct, and then press ENTER to return to the Setup menu for new options, or to complete the installation process.

The Change Network Configuration Menu

If you select Change Network Configuration in the Startup menu, you will see the following menu.

This menu is different than the others because it has a double window. The selections that are ed in the upper and lower windows are directly related. The active window is indicated by a double white outline. You use the TAB key to activate the upper or lower window. After the window is active, you can use the UP ARROW and DOWN ARROW keys to select an option.

The upper window shows the installed adapters and protocols. The lower window has the following options:

Change Settings: This option allows for settings to be made to the adapter or protocol that is currently ed in the upper window. If you are changing settings and a network adapter is selected, you may have the option to change some of the settings, such as driver name, IRQ, I/O address, and more. It is usually best to use the manufacturer's suggested settings if possible.

If you are changing settings to the NetBEUI protocol, you can change the Maximum Sessions or the NCBS setting.
If you are changing settings to the NWLink protocol, you can change the frame type from the default 802.2 (Ethernet_802.2) to any of the following: Ethernet_802.3, Ethernet_II, Ethernet_SNAP, or TOKENRING.
If you are changing settings to the TCP/IP protocol, you can enable or disable the Domain Host Configuration Protocol (DHCP), input the IP address, subnet mask, and up to two default gateways, and set the number of NetBIOS sessions.
Note The format of all IP addresses in this section is based on spaces replacing the dots that separate the octets (that is, 127 0 0 1 instead of 127.0.0.1).

Remove: Remove whatever network adapter or protocol is currently ed in the upper window.
Add Adapter: Allows you to add a network adapter, and adds it to the upper window.
Add Protocol: Allows you to add another protocol, and adds it to the upper window.
Use the UP ARROW and DOWN ARROW keys to select an option, and then press ENTER. Change the options as necessary. If all of the options have been set, select The listed options are correct, and then press ENTER to return to the Setup menu for new options, or to complete the installation process. Modifying the Startup Disk for NWLink Frame Types.

Finish the Microsoft Network Client for MS-DOS installation on the computer or the installation of files on the startup disk.

In the network installation directory ("Net" directory on the startup disk or on the computer's hard disk drive, unless the directory name was changed during installation), open the Protocol.ini file in Notepad or a text editor. Look for the protocol section of the file; it is preceded by a header, which appears as follows:

[ms$nwlink]
Under the title, find the value that appears as follows:

FRAME=Ethernet_802.2
This is the default setting. Change "Ethernet_802.2" to the appropriate frame type for your network. The frame types available must be input exactly as they appear here. The choices are as follows:

Ethernet_802.2
Ethernet_802.3
Ethernet_II
Ethernet_SNAP
TOKENRING

Save the changes in the Protocol.ini file. Modifying the Startup Disk for Network Interface Cards Not in the List.

Modifying the Startup Disk for network interface cards (NIC) not in the list requires installing the appropriate MS-DOS driver and editing two system files.

Install an NDIS2-compatible MS-DOS driver for the NIC. These are usually included with the floppy disk supplied by the manufacturer with their drivers. If no drivers are available, download the appropriate driver from the manufacturer's Web site.
Appropriate drivers for the Microsoft Network Client for MS-DOS will always have a .dos extension. For example, the driver for Intel's EtherExpress Pro/10 EISA is:

Epro.dos

This driver should be placed in the Net directory on the computer (C:\Net, unless named differently) or on the MS-DOS startup disk (A:\Net).

Modify the System.ini file. The NIC driver needs to be referenced in the System.ini file. This entry is found in the [network drivers] section, as illustrated below:
[network drivers]
netcard=elnkii.dos
transport=ndishlp.sys,*netbeui
devdir=A:\NET
LoadRMDrivers=yes

For "netcard=," replace the current driver with the file name of the NDIS2-compatible driver placed in the Net directory (for example, Epro.dos).

Modify the Protocol.ini file. The NIC driver needs to be referenced in the Protocol.ini file. This entry is found in the [ms$ driver_name] section (the driver name will reflect what was originally chosen in the Network Installation Startup Disk process), as shown below:
[ms$elnkii]
drivername=ELNKII$
; INTERRUPT=3
; IOADDRESS=0x300
; DMACHANNEL=1
; MAXTRANSMITS=12

For "drivername=," replace the driver listed with the file name of the NDIS2-compatible driver; use a dollar sign ($) to replace the .dos file extension (for example, EPRO$).

Note Do not change the header (for example, [ms$elnkii] in the example above); the header is a pointer throughout the .ini file. Additional TCP/IP Settings for the Microsoft Network Client for MS-DOS.

Specifying WINS Servers

If your Microsoft Network Client for MS-DOS uses DHCP (the default setting for MS-DOS TCP/IP), it will automatically receive the address for the Windows Internet Naming Service (WINS) server. If you want to statically configure your WINS server IP address, you must edit the client's Protocol.ini file and add the IP address to the [TCPIP] section.

For example, if you have two WINS servers available, add them into the [TCPIP] section as shown in the example below. Note that there are no dots (.) in the IP addresses.

[TCPIP]
WINS_SERVER0 = 11 101 13 53
WINS_SERVER1 = 11 101 12 198

Name queries will be sent to the WINS servers in the order in which they appear in the .ini file. The ipconfig command may show a different order of WINS servers (or even different WINS servers altogether) —these are the WINS server names sent by DHCP, and the Protocol.ini settings override them.

Important There is a difference in functionality available in TCP/IP for Microsoft® Windows® for Workgroups, Windows NT Workstation, and Windows NT Server, versus MS-DOS TCP/IP. Specifically, an MS-DOS TCP/IP client does not:

Support DNS resolution using WINS.
Support WINS resolution using DNS.
Register its name with the WINS database; it does queries only.
Logging On with TCP/IP Across a Router
If the domain controller is across a router from the Microsoft Network Client for MS-DOS computer, you must add a line to the client's LMHOSTS file (located in the Net directory — if there is no LMHOSTS file, you need to create one) for logons to be validated. The line has the following format:

www.xxx.yyy.zzz SRV_NAME #DOM:DOM_NAME
where:

www.xxx.yyy.zzz is the IP address of the domain controller.
SRV_NAME is the NetBIOS name of the domain controller.
DOM_NAME is the name of the domain.
You must also ensure that the domain controller can contact the Microsoft Network Client for MS-DOS using one of the following methods:

Enter the client's IP address and name in the domain controller's LMHOSTS file.
Register the client with a WINS server that is accessible by the domain controller (placing a static entry in WINS for the Microsoft Network Client for MS-DOS).
Ipconfig.exe and Controlling DHCP Leases
The Ipconfig.exe utility provides DHCP configuration information only. The version of Ipconfig.exe provided with the Microsoft Network Client for MS-DOS does not support command-line switches for controlling DHCP address leases; you must use the DHCP Administration Utility instead. References.

The following articles in the Microsoft Knowledge Base provide additional information on this topic.

Q135465 - README.TXT: Microsoft Network Client version 3.0

Q128800 - How to Provide Additional NDIS2 Drivers for Network Client 3.0[winnt]

Q142857 - How to Create a Network Installation Boot Disk

Q130875 - Troubleshooting MS Network Client 3.0 and DHCP

Q128751 - No "Advanced" button in Client TCP/IP Configuration Box

Q123285 - IPCONFIG Displays Invalid Results

Q130538 - DHCP-Enabled MS-DOS Clients Do Not Resolve Host Names

Once you have successfully installed your MS-DOS network client, you will notice you can only connect to remote computer shares on your network from your DOS PC - you can not share out your PC like in Windows.

To share your MS-DOS PC with other computers on your network you will have to replace your NET.EXE, NET.MSG and NETH.MSG files with server enabled versions.

THIS WILL NOT WORK FOR VERSIONS OF MS-DOS 7 OR HIGHER.
This is because SHARE.EXE is required by the server software. SHARE.EXE has been removed after MS-DOS 6.22 as it does not work with FAT32 in REAL DOS.

The server enabled versions can be found in the DOWNLOAD section.

Download the DOS CLIENT SERVER PATCH from the DOWNLOADS section.

Extract the files to C:\NET or into your MS-DOS network client path, overwriting NET.EXE, NET.MSG and NETH.MSG.

Edit your Autoexec.bat to include :
NET START SERVER
To start the server

Reboot your PC and you will notice if you type NET /? at the command prompt you will have a SHARE option

To see the SHARE options, type NET SHARE /? | MORE

To share a drive or folder with read/write access, simply use the syntax

NET SHARE [SHARE NAME]=[LOCAL PATH] /FULL:

eg.

NET SHARE MAME=C:\MAME /FULL:

The MS-DOS client will automatically remember your shares next time you reboot

Last updated on 09/22/2010, 19:37:21.

Blog

DOS MAME Retired
9/23/2013

Today I'm officially retiring my DOS MAME pages. As of writing, MAME is at version ... Read More

x64MAME - Windows 7 Config
12/7/2012

Windows 7 Config (WIP) Set a static IP address with NO gateway or DNS to prevent ... Read More

x64MAME - All Change
12/7/2012

I've been having some reliability issues with Windows XP x64 - lock outs & ... Read More

More Blog Entries