Getting networking working in DOS can be a bit tricky. Network "stacks" tend to be fairly complex and require proper configuration to work with other notes on the network, and DOS network software often has little in the way of automating said configuratuin.
I've got a couple tools which can help confirming/testing the lowest level NIC hardware and packet driver software.
Note that these are 16-bit DOS software. For best ability to test you'll need TWO networked DOS systens (they do work well in DosBox with networking)
Neither of these has to be "installed", and don't need any existing network software on the system .. just load a packet driver and run!
--
"SNIFF" is a low-level network packet "sniffer". It will let you transmit packets of data over your network and see any packets of data that occur on your network. It can work with directed (to your specific MAC) or broadcast (to everyone) packets.
Even if you don't have two DOS compatible systems to run two instances of SNIFF, you will be able to see the broadcast packets commonly/frequently sent by almost all modern network software. If you happen to have a network "hub" (instead of the much more common "switch") you will be able to see all traffic between systems on the network,
--
"DDLINK" is a fairly full-featured file transfer tool.
--
You can grab either/both of these from my site!
Note that these packet oriented tools are "local network only" ... If by "getting ... online" you mean full internet access, you'll still have to setup/configure a full network "stack" of some sort -- but at least these tools can help confirm that network hardware/software is working at the lowest level!
https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filetransfer(w/o netSW)via Lan/Lpt/Com