To install two (or more) network cards

under OS/2, using the same brand and model NIC's


If you have two or more cards using different NIC chipsets, this isnt
normally an issue. This File applies mainly to NIC's using the RTL8019AS chip for ISA based cards, and the RTL8139B chip for PCI based cards.
Your card may use different settings, or names for AdapterID etc.

Step One

Install your first Network Card (NIC)
Boot from a dos disk, or other means so there are no network drivers loaded, and you have a dos prompt.
Insert your setup disk that came with your NIC and run the setup program, get the network Adapter ID(Also called Network Address with some cards), which will be a number that looks like  "52 64 4C 0B A8 D9", set the I/O and IRQ address's to any acceptable values except there defaults, and make sure you write all this information down! While you are here, connect a TP cable to the card and connect this to your HUB and run the Onboard test to to ensure the NIC is ok (not a perfect test but it covers the basics).
 

Step Two

Now, turn your PC off, and install the second NIC, reboot with your DOS disk and run the NIC setup program again, go through the same proceedure as the first NIC except  you only have to make sure that the I/O and IRQ values are different to the first NIC, make sure you write down all this information, including the Adapter ID. If you are lucky, your NIC setup program will list both cards, with one as Card1, and the other as Card2, if not, label the information you have written down as Card1, and Card2, with Card1 being the card in the lowest numbered slot in your PC.
 

Step Three

Install your drivers if they are not already in your C:\IBMCOM\MACS directory, to do this the easiest way is to use MPTN and install your cards, first install card one, then add the required protocols, then add your second card, with the required protocols. If you are using NetBIOS, now is also the time to
click on  "NetBIOS Socket Access" on your way out of MPTN", you will see why shortly.
Exit out of MPTN, and click yes to make CONFIG.SYS changes.
 

Step Four

Go to your C:\IBMCOM directory and edit  protocol.ini.
You will have to add some entries here so that the drivers know which card is which. Here is an example protocol.ini file.
 

[PROT_MAN]

   DRIVERNAME = PROTMAN$

[IBMLXCFG]

   netbeui_nif = netbeui.nif
   tcpip_nif = tcpip.nif
   RTL8019_nif = RTL8019.nif                                 <=== Note this
   RTL8019_nif2 = RTL8019.nif                               <=== and this

[NETBIOS]

   DriverName = netbios$
   ADAPTER0 = netbeui$,0

[netbeui_nif]

   DriverName = netbeui$
   Bindings = RTL8019_nif
   NETADDRESS = "52544C0BA8D9"                  <==== Which card uses netbeui
   ETHERAND_TYPE = "I"
   USEADDRREV = "YES"
   OS2TRACEMASK = 0x0
   SESSIONS = 130
   NCBS = 225
   NAMES = 21
   SELECTORS = 50
   USEMAXDATAGRAM = "YES"
   ADAPTRATE = 1000
   WINDOWERRORS = 0
   MAXDATARCV = 4168
   TI = 30000
   T1 = 1000
   T2 = 200
   MAXIN = 1
   MAXOUT = 1
   NETBIOSTIMEOUT = 500
   NETBIOSRETRIES = 3
   NAMECACHE = 1000
   RNDOPTION = 1
   PIGGYBACKACKS = 1
   DATAGRAMPACKETS = 50
   PACKETS = 300
   LOOPPACKETS = 8
   PIPELINE = 5
   MAXTRANSMITS = 6
   MINTRANSMITS = 2
   DLCRETRIES = 10
   FCPRIORITY = 5
   NETFLAGS = 0x0

[tcpip_nif]

   DriverName = TCPIP$
   Bindings = RTL8019_nif,RTL8019_nif2                           <=== Note this

[RTL8019_nif]

   DriverName = PNPND$
   AdapterID = @52544C0BA8D9                                           <==== Add this

[RTL8019_nif2]

   DriverName = PNPND2$
   AdapterID = @52544C0BACC7                                          <==== Add this
 

Be careful of the relationship of the protocols to which card, its very logical but this is the most common mistake.
Now, this bit is  REALLY IMPORTANT, make sure you back this file up, because if you go back into MPTN, it will casually delete all the AdapterID's for you, very thoughful program.

The next most common mistake, is the order that you load the network drivers in config.sys, this is the order I have found will give you the maximum chance of success.

CALL=C:\IBMCOM\PROTOCOL\NETBIND.EXE
RUN=C:\IBMCOM\LANMSGEX.EXE
SET NLSPATH=C:\MPTN\MSG\NLS\%N;c:\tcpip\msg\enus850\%N;
SET ETC=C:\MPTN\ETC
DEVICE=C:\MPTN\PROTOCOL\SOCKETS.SYS
DEVICE=C:\MPTN\PROTOCOL\AFOS2.SYS
DEVICE=C:\MPTN\PROTOCOL\AFINET.SYS
DEVICE=C:\MPTN\PROTOCOL\AFNB.SYS /S:50 /C:80 /N:2
RUN=C:\MPTN\BIN\AFNBINI.EXE
RUN=C:\MPTN\BIN\CNTRL.EXE
CALL=C:\OS2\CMD.EXE /Q /C C:\MPTN\BIN\MPTSTART.CMD >NUL
DEVICE=C:\IBMCOM\PROTOCOL\NETBEUI.OS2                                                     ****
DEVICE=C:\IBMLAN\NETPROG\RDRHELP.200
DEVICE=C:\IBMCOM\PROTOCOL\NETBIOS.OS2                                                     ****
IFS=C:\IBMLAN\NETPROG\NETWKSTA.200 /I:C:\IBMLAN /N                               ****
SET I18NDIR=C:\IBMI18N
RUN=C:\IBMLAN\NETPROG\LSDAEMON.EXE
RUN=C:\IBMLAN\NETPROG\VNRMINIT.EXE
SET NWDBPATH=C:\IBMLAN\NETPROG
SET DLSINI=C:\IBMLAN\NETPROG\NETGUI.INI
SET INIT_FILE_NAMES=netgui
SET INIT_FILE_RANGES=200
SET WPS_COMMUNICATION=YES
SET LANINSTEP=E:\CID\IMG\IBMPEER
SET TMP=c:\tcpip\tmp
SET HOSTNAME=vp100p

<other drivers, ie video etc>

DEVICE=C:\IBMCOM\MACS\PNPND.OS2                                                          ****
DEVICE=C:\IBMCOM\MACS\PNPND.OS2                                                          ****
SET USE_HOSTS_FIRST=1
 

**** The order that these files are loaded is the most important. The only one's you may have to change is the NETBIOS.OS2, ensure this is above NETWKSTA.200. I also normally load the card drivers themselves, in this case PNPND.OS2 last, this ensures that everything that they need to bind to is already loaded.
 

Step 5

Reboot, and cross your fingers.