VOGONS


[SOLVED]MTCP:dosbox with ne2000 patch cannot setup DHCP

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by dehavilland

User metadata
Rank Newbie
Rank
Newbie

Environment: Archlinux. DOSBOX SVN 3858 with NE2000 patch

The emulated ethernet card seems to be set up properly. I added my current user to the pcap group to avoid running dosbox as root.

DOSBox version SVN
Copyright 2002-2013 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/highcheng/.dosbox/dosbox-SVN.conf
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Client initialised [128:0]
MIDI:Opened device:alsa
Using Network interface:
wlan0
(no description)

And my packet driver software interrupt is 0x60, interrupt number 0x3, Ethernet address is AC:DE:48:88:99:AA.

Everything seems to be fine until I run the DHCP.EXE of mtcp. All DHCP request got timeouts and it said

Your DHCP server never responded, but your Ethernet card is receiving packets.

And I tried to set up the gateway, netmask and DHCP address manually. It didn't work, either.

===============================================================================
Update 20140128

I found the problem. When I use the cable instead of wifi, it works without using an disk image!

gulikoza wrote:

Using Network interface:
wlan0

Does that mean you're actually using a wifi card? Most wifi cards are unable to spoof MAC addresses so they don't work in setups like this...

Thank you!

Last edited by dehavilland on 2014-01-28, 23:28. Edited 1 time in total.

Amibay username:winstonwu91
Recent wants:A cheap intelligent midi interface card, a good record player

A young Chinese student studying in US, drives a vintage car, use a vintage typewriter and loves vintage PC.

Reply 1 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

The one time I tried on OS X I thinl I needed to run Dosbox with sudo.
AND AFAIK you need to boot a hard drive image with Dos in Dosbox to make it work

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 13, by dehavilland

User metadata
Rank Newbie
Rank
Newbie
Dominus wrote:

The one time I tried on OS X I thinl I needed to run Dosbox with sudo.
AND AFAIK you need to boot a hard drive image with Dos in Dosbox to make it work

I tried sudo but it doesn't work 🙁

and what do you mean by 'boot a hard drive image'? I can't make it clear.

PS This is my dosbox configuration.

ne2000=true
nicbase=300
nicirq=3
macaddr=AC:DE:48:88:99:AA
realnic=wlan0

...

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c /home/highcheng/dosbox/c -freesize 2048
mount d /home/highcheng/dosbox/d -freesize 2048
mount e /home/highcheng/dosbox/e -freesize 2048
ver set 6.22
C:\AUTOEXEC.BAT
C:\FAKESHAR.COM

and my c:\autoexec.bat

SET SOUND=C:\SB16
SET BLASTER=A220 I7 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:E
C:\SB16\DIAGNOSE /S
C:\SB16\MIXERSET /P /Q
C:\WINDOWS\SMARTDRV.EXE
PATH C:;C:\WINDOWS;Z:;C:\ARACHNE;C:\MTCP;c:\trumpet
PATH=C:\TCWIN45\BIN;%PATH%;
SET TEMP=C:\WINDOWS\TEMP
C:\NE2000.COM 0x60 3 0x300
C:\WINPKT.COM 0x60
set MTCPCFG=c:\mtcp\1.cfg

Amibay username:winstonwu91
Recent wants:A cheap intelligent midi interface card, a good record player

A young Chinese student studying in US, drives a vintage car, use a vintage typewriter and loves vintage PC.

Reply 3 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Sample usage of a harddisc image in DOSBOX

Yeah, quick search confirmed it again, you need to boot a dos image in dosbox

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 5 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

The problem of the op.
I don't quite follow, do you have networking via the ne2000 patch without a harddrive image?

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 7 of 13, by mbbrutman

User metadata
Rank Member
Rank
Member
Dominus wrote:

The problem of the op.
I don't quite follow, do you have networking via the ne2000 patch without a harddrive image?

At least on Windows, the NE2000 patch does not require a hard drive image.

The error message indicates that DHCP from within DOSBox is setting packets delivered. Chances are they are broadcast packets, as the DHCP request is never being answered. So maybe the DHCP request was never passed along and made it to the router.

Reply 8 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Ok, might have changed. I think the reason for booting an image was the need for a working share.exe

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 10 of 13, by dehavilland

User metadata
Rank Newbie
Rank
Newbie
h-a-l-9000 wrote:

Boot from an image is required when you need DOS network drive letters and such, or MS-Net.

Uh-oh...
Even if I used an image, I got the same problem. So maybe it is not the case.

Amibay username:winstonwu91
Recent wants:A cheap intelligent midi interface card, a good record player

A young Chinese student studying in US, drives a vintage car, use a vintage typewriter and loves vintage PC.

Reply 11 of 13, by dehavilland

User metadata
Rank Newbie
Rank
Newbie
gulikoza wrote:

Using Network interface:
wlan0

Does that mean you're actually using a wifi card? Most wifi cards are unable to spoof MAC addresses so they don't work in setups like this...

Thank you!
Maybe this is the problem.
I changed to wire network and it works even without a disk image.

Amibay username:winstonwu91
Recent wants:A cheap intelligent midi interface card, a good record player

A young Chinese student studying in US, drives a vintage car, use a vintage typewriter and loves vintage PC.

Reply 13 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Please don't necro post and especially don't hijack threads with an issue that is not the same one. Your problem is so different that you need to open a new thread for this.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper