4 tap.device is a SANA-II-compliant network driver that allows AROS running in
5 hosted environments to access the network via the host operating system
6 (currently Linux only).
8 This driver is early alpha. Its unfinished in places, and there are probably
9 several groovy bugs about.
14 - The Linux TUN/TAP driver (Linux config item CONFIG_TUN)
15 - The "tunctl" program, which comes with the uml-utilities package available
16 at http://user-mode-linux.sourceforge.net/
21 - Build AROS as normal
23 - As root, create and configure a TAP network interface
25 # tunctl -b -u <your user name> -t aros0
26 # ifconfig aros0 192.168.0.1
28 - As your normal user, start AROS
32 - Edit SYS:System/Network/AROSTCP/db/interfaces and add the
35 eth0 DEV=DEVS:networks/tap.device UNIT=0 IP=192.168.0.188 UP
39 > execute SYS:System/Network/AROSTCP/S/startnet
41 - Ping AROS from Linux
45 Thats it. AROS can now reach the Linux host, and vice-versa.
50 The driver is extremely verbose. I'm leaving the debug output in place until I
51 consider the code to be stable. If you want to disable it, edit
52 arch/all-unix/devs/networks/tap/tap.h and redefine DEBUG to be 0, then
55 The unit number and Linux interface name are linked such that opening unit #0
56 on the Amiga side will result in attachment to interface aros0 on the Linux
57 side, unit #1 -> aros1, etc. By default, the driver can handle up to four
58 units (ie four seperate virtual networks); this can be increased by changing
59 MAX_TAP_UNITS in tap.h.
61 To get AROS hosted onto your network, you'll need to look into Linux-side
62 tools like iptables, brctl, etc.
64 To remove the TAP interface once AROS has exited, do this:
68 You'd do well to create a startup script that handles all the network setup
69 for you; something like this might be a good place to start:
77 iface=$(sudo tunctl -b -u `whoami` -t aros$unit)
78 sudo ifconfig $iface $ip
86 You'll undoubtedly have problems; this is very new code. Please send reports,
87 feedback and other comments to me at rob@cataclysm.cx, or talk to "fce2" in
90 If you are having a problem, I'm probably going to ask for debug output, and
91 possibly steps to reproduce the problem.
96 - Deal with remaining XXX items
99 - Remove dependency on linux/* headers and host compiler
100 - Better docs (someone want to write this?)
105 Copyright (c) 2007 Robert Norris. All rights reserved.
107 This program is free software; you can redistribute it and/or modify it under
108 the same terms as AROS itself.