DOSEMU | ||
---|---|---|
Prev |
This is the Windows Net Howto by Frisoni Gloriano <gfrisoni@hi-net.it> on 15 may 1997
This document tries to describe how to run the Windows trumpet winsock over the dosemu built-in packet driver, and then run all TCP/IP winsock-based application (netscape, eudora, mirc, free agent .....) in windows environment.
This is a very long step-by-step list of operation, but you can make little scripts to do all very quickly ;-)
In this example, I use the dosnet based packet driver. It is very powerful because you can run a "Virtual net" between your dos-windows session and the linux, and run tcp/application application without a real (hardware) net.
The WINPKT.COM virtual packet driver, version 11.2 I have found this little tsr in the Crynwr packet driver distribution file PKTD11.ZIP
The Trumpet Winsock 2.0 revision B winsock driver for windows.
Enable "dosnet" based dosemu packet driver:
cd ./src/dosext/net/net select_packet (Ask single or multi -> m) |
Make the dosnet linux module:
cd ./src/dosext/net/v-net make |
Make the new dosemu, with right packet driver support built-in:
make make install |
Now you must load the dosnet module:
insmod ./src/dosext/net/v-net/dosnet.o |
Some linux-side network setup (activate device, routing). This stuff depends from your environment, so I write an example setup.
Here you configure a network interface dsn0 (the dosnet interface) with the ip address 144.16.112.1 and add a route to this interface.
This is a good example to make a "virtul network" from your dos/windows environment and the linux environment.
ifconfig dsn0 144.16.112.1 broadcast 144.16.112.255 netmask 255.255.255.0 route add -net 144.16.112.0 dsn0 |
I suppose you know how to run windows in dosemu. You can read the Section 9 document if you need more information. Windows is not very stable, but works.
start dosemu.
copy the winpkt.com driver and the trumpet winsock driver in some dos directory.
start the winpkt TSR. (dosemu assign the 0x60 interrupt vector to the built-in packet driver)
winpkt 0x60 |
edit the trumpet winsock setup file trumpwsk.ini. Here is an example of how to setup this file: (I think you can use less parameters, if you have the time to play with this file. You can also setup this stuff from the winsock setup dialog-box).
[Trumpet Winsock] netmask=255.255.255.0 <-- class C netmask. gateway=144.16.112.1 <-- address in the default gateway. dns=www.xxx.yyy.zzz <-- You must use right value for the dns. domain=hi-net.it ip=144.16.112.10 <-- Windows address in the dosnet. vector=60 <-- packet driver interrupt vector. mtu=1500 rwin=4096 mss=1460 rtomax=60 ip-buffers=32 slip-enabled=0 <--- disable slip slip-port=2 slip-baudrate=57600 slip-handshake=1 slip-compressed=0 dial-option=1 online-check=0 inactivity-timeout=5 slip-timeout=0 slip-redial=0 dial-parity=0 font=Courier,9 registration-name="" registration-password="" use-socks=0 socks-host=0.0.0.0 socks-port=1080 socks-id= socks-local1=0.0.0.0 0.0.0.0 socks-local2=0.0.0.0 0.0.0.0 socks-local3=0.0.0.0 0.0.0.0 socks-local4=0.0.0.0 0.0.0.0 ppp-enabled=0 <-------- disable ppp ppp-usepap=0 ppp-username="" ppp-password="" win-posn=42 220 867 686 -1 -1 -4 -4 1 trace-options=16392 [default vars] |
Now you can run windows, startup trumpet winsock and ..... enjoy with your windoze tcp/ip :-)
Gloriano Frisoni. <gfrisoni@hi-net.it>