I'm trying to set up a network with Bochs using TUN/TAP within Win98 on a Linux machine.

Here are some of my settings (in Windows 98):

IP Address Specify IP address

IP Address: Subnet Mask

DNS Configuration Host: catch22bbs Domain: com

DNS Server Search Order

Installed gateways

Here is my bochsrc.txt

megs: 724
cpu: count=1, ips=25000000, reset_on_triple_fault=1, ignore_bad_msrs=1
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
vga: extension=cirrus, update_freq=25
pci: enabled=1, chipset=i440fx, slot1=cirrus
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="win98.img"
ata1-master: type=cdrom, path="win98.iso", status=inserted
boot: disk
config_interface: textconfig
#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term        svga
log: bochsout.txt 
sb16: enabled=1
mouse: enabled=1
sb16: wavemode=1, dmatimer=500000
clock: sync=none, time0=1
ne2k: ioaddr=0x300, irq=3, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun, script=/root/Downloads/ANDROID/bochs/img/tunconfig

Here is my tunconfig script:

/sbin/ifconfig ${1##/*/}

/sbin/iptables -D POSTROUTING -t nat -s  -d !  -j MASQUERADE >& /dev/null
/sbin/iptables -t nat -s  -d !  -A POSTROUTING -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

ifconfig tun up

route del -net netmask dev tun
route add -net netmask dev tun

echo 1 > /proc/sys/net/ipv4/conf/tun/proxy_arp
arp -Ds tun pub

I'm not sure if it matters or not, but my actual IP (on the Linux side) is

So, my question is: do I have it set up correctly?


  • what is the question? – schaiba Jul 6 '17 at 5:58
  • If my configuration is correct or not. Sorry. Should of made that clear. – ignatius Jul 6 '17 at 6:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.