Autor Thema: Netzwerk unter Aranym  (Gelesen 40344 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

frank.lukas

  • Gast
Netzwerk unter Aranym
« am: Di 18.12.2007, 17:49:53 »
Eine kleine Anleitung unter Linux (Debian oder Ubuntu) und ARANYM
den Atari Emu ins Internet zu bringen ...

----------------- Linux Seite ------------

 install these packages issue the following command:

sudo apt-get install bridge-utils uml-utilities

2. Configuring the bridge

Ok, so lets start with the fun ;)

First of all, lets configure the network setup so that you will have a br0 interface at boot, and your network interface (eth0) will be part of it.

To accomplish this in Ubuntu I've configured my /etc/network/interfaces to look something like this:

auto br0
iface br0 inet dhcp
       bridge_ports eth0 tap0

auto eth0
iface eth0 inet manual

auto tap0
iface tap0 inet manual
    tunctl_user root

#root = muß durch einen user ersetzt werden


Quite simple huh? With this setup you should have what we want. To test it immediately run reinitialise the network:

sudo /etc/init.d/networking restart

After it finish its job, doing an

ifconfig

    should show you something like this:

br0        Encapsulamento do Link: Ethernet  Endereço de HW 00:11:D8:37:D8:B9
          inet end.: 192.168.1.2  Bcast:192.168.1.255  Masc:255.255.255.0
          endereço inet6: fe80::211:d8ff:fe37:d8b9/64 Escopo:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Métrica:1
          pacotes RX:6973 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:7301 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:0
          RX bytes:3557787 (3.3 MiB) TX bytes:932172 (910.3 KiB)

eth0       Encapsulamento do Link: Ethernet  Endereço de HW 00:11:D8:37:D8:B9
          endereço inet6: fe80::211:d8ff:fe37:d8b9/64 Escopo:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Métrica:1
          pacotes RX:184453 erros:75 descartados:0 excesso:0 quadro:0
          Pacotes TX:255573 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:1000
          RX bytes:23372490 (22.2 MiB) TX bytes:136539269 (130.2 MiB)
          IRQ:217 Endereço de E/S:0x6000

tap0      Protokoll:Ethernet  Hardware Adresse 00:FF:9A:7A:48:A1 
          inet6 Adresse: fe80::2ff:9aff:fe7a:48a1/64 Gültigkeitsbereich:Verbindung

Note that br0 is the interface that gets the IP. The eth0 is like a "dummy" interface.


----------------- Atari Seite -------------

Bei mir ist MiNT Installiert (emu-tos) und man kann z.B. das E-NICK.PRG nutzen ...

Interface = eth0
IP Adresse = deine IP Adresse
Netmask = 255.255.255.0
Gateway = 192.168.178.1
Nameserver = 192.168.178.1
Domain = "kann leer bleiben"
Hostname = ARANYM

da ich eine Fritz Box nutze ist mein Gateway und meine Nameserver Adresse jeweils gleich und muß bei euch natürlich entsprechend angepasst werden.

oder manuel z.B. bei mir unter D:/etc/sysconfig
« Letzte Änderung: Di 18.12.2007, 17:58:24 von frank.lukas »

frank.lukas

  • Gast
« Letzte Änderung: Mi 19.12.2007, 17:00:40 von frank.lukas »

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #2 am: Di 18.12.2007, 21:33:51 »
Prima Sache danke Frank!!
Tschau Ingo

frank.lukas

  • Gast
Re: Netzwerk unter Aranym
« Antwort #3 am: Di 18.12.2007, 21:47:02 »
... vielen Dank zurück an Tuxie,

wer stellt eine Lösung für Windows und eine für Mac OS X hier rein?


grüße

   Frank

Oder stimmt die Aranym Doku für Windows ...

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #4 am: Di 18.12.2007, 22:06:14 »
Also ich habe schon Stunden gesessen um das Netzwerk mit Windows zum laufen zu bekommen, aber bisher ohne erfolg. Es ist eingerichtet und arany erkennt auch das Tun/Tap device aber es gehen keine Daten rüber.

Aber fü Mac OS X kann ich das mal machen.
Tschau Ingo

frank.lukas

  • Gast
Re: Netzwerk unter Aranym
« Antwort #5 am: Di 18.12.2007, 22:30:14 »
Hallo Tuxie,

mein G3 B&W ist für Aranym zu langsam.

Aber es sollte das gleiche wie unter Linux sein. Nur andere Programmpakete die man unter OSX braucht.



grüße

   Frank

frank.lukas

  • Gast
Re: Netzwerk unter Aranym
« Antwort #6 am: Di 18.12.2007, 22:35:05 »
Doku unter ...

http://wiki.aranym.org/manual#networking



Unabhängig ob OSX, Linux oder Windows gehen zwei Möglichkeiten ...

erste - Proxy-ARP

zweite - Bridged (wie in meinem Beispiel unter Ubuntu Linux)


grüße

  Frank

In meinem Beispiel unter ARANYM/MiNT ist eth0, tap0 und kann eine andere IP bekommen als eth0 unter Linux
« Letzte Änderung: Di 18.12.2007, 23:58:15 von frank.lukas »

frank.lukas

  • Gast
Re: Netzwerk unter Mac Aranym
« Antwort #7 am: Fr 28.12.2007, 14:37:14 »
Eine Anleitung incl. einer JIT Version für G4 Rechner von Aranym liegt unter ...


http://www.donzé.ch/atari/software/macaranym/



Setting up ethernet on the MAC (0.9.5 beta)
===========================================


1. Install TUN/TAP driver
-------------------------
Download the tuntap driver from

http://www-user.rhrk.uni-kl.de/~nissler/tuntap/

unpack the binary version and use the tuntap_installer.

(If you don't want to use the installer there is a description how
you can install the drivers manually at the end of this document)

2. Prepare aratapif.sh
----------------------
Edit the aratapif.sh and modify the following parameters
to your requirements.

FW_INTERFACE : the interface which is your normal MAC network device
               may be en0 for a wired RJ45 and en1 for a WLAN connection
NAMESERVER    : Point this to your normal name server

Copy the file into the directory ~/Library/Application Support/Aranym,
if the Aranym directory is not existent simply create a new one.

3. Configuring MacAranym
------------------------
Configure your MacAranym config file and modify the ETH0 section

[ETH0]
Type = ptp
Tunnel = tap0
HostIP = 192.168.1.8
AtariIP = 192.168.1.9
Netmask = 255.255.255.0
MAC = 00:41:45:54:48:30

Set the HostIP and AtariIP to a network that is outside of your normal
network range. i.E. if your default network is 172.16.1.xxx than you may
use i.e. 192.168.1.x, or if your normal network is 192.168.1.x you may
use i.e. 172.16.1.xxx addresses.

If you want to disable ethernet, set "Type=none".

4. Prepare Guest OS side
------------------------
Edit the /etc/resolv.conf in the ATARI file system and point it to your
host system (in the above example to 192.168.1.8)


5. Testing the connection
-------------------------
Boot up MacAranym. After startup open a terminal window on Mac side
and try to send a ping to the Guest IP address, i.E.

$ ping 192.168.1.9


6. Joy your Ethernet connection
-------------------------------
;-)



Troubleshooting
---------------
If the device /dev/tap0 does not having the correct access flags
modify the file /Library/StartupItems/tap/tap and add a chmod to
the StartService section. After that it should look like the one
below:


StartService ()
{
        ConsoleMessage "Initializing tap devices"

        if [ -d /Library/Extensions/tap.kext ]; then
                kextload /Library/Extensions/tap.kext
                chmod a+rw /dev/tap0
        fi
}


Manuall installation (Experts)
------------------------------
If you don't like to use the installer for the TUNTAP extension you can
install them manually.

1. download the binary TUNTAP package for your system (panther/tiger).
2. unpack the archive to a temporary folder
3. right click the package tap_kext.pkg and select "Show package contents"
4. Go into the folder "Contents" and unpack the file Archive.pax.gz
by using a right click and selection "Open with ..." -> "BOMArchiveHelper"
5. Enter the directory Archive/Library/Extensions and copy tap.kext to
a folder that you like
6. do steps 3 to 5 also with tun_kext.pkg and get tun.kext from it.
7. create a file i.E. load.sh in your destination directory where you
have put tun.kext and tap.kext with the following content:

#!/bin/sh

chown -R root:wheel tun.kext
chown -R root:wheel tap.kext
kextload tap.kext
kextload tun.kext
chmod a+rw /dev/tap[0-9]*

8. for unloading the device drivers from the kernel you need another
script (i.E. unload.sh) with the following content:

#!/bin/sh

/sbin/ipfw delete 00200

# kill an old natd if necessary
if test -f /var/run/natd_fw.pid; then
   kill -9 `cat /var/run/natd_fw.pid`
fi
# kill an old natd if necessary
if test -f /var/run/natd_dnsfw.pid; then
   kill -9 `cat /var/run/natd_dnsfw.pid`
fi
   
kextunload tap.kext
kextunload tun.kext

9. Loading the drivers before starting MacAranym

Open a terminal and change to the directory in which you have placed
your files.

$ cd mytuntapfolder

Start the load script with sudo

$ sudo ./load.sh

when prompted for the password use your user password.

9. for unloading the drivers after finishing MacAranym execute:

$ sudo ./unload.sh


Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #8 am: Fr 28.12.2007, 16:35:48 »
Ah ne ist nicht nur für G4 ist ein Universal Binary also auch für Intel Macs geeignet!! Werde ich mir doch gleich mal ziehen.
Tschau Ingo

Offline Mikespeier

  • Benutzer
  • Beiträge: 131
Re: Netzwerk unter Aranym
« Antwort #9 am: Mi 09.01.2008, 09:02:18 »
Hallächen Frank & Tuxie! ;D

Find ich ja eine gute Idee von euch mit diesen Anleitungen, nur hat das ganze einen "kleinen" Fehler!

Das ist leider irgendwie ein bischen zu englisch für mich. Gibt es da nicht irgendwo eine deutsche Übersetzung dafür?? ???
Mein Englisch ist in den letzten 20 Jahren irgendwie eingerostet und ich denke, daß es einigen Anderen auch so geht! Vor allem wenn man mit ATARI-Computern oder mit Windows arbeitet, ist man doch eher mit deutschen Anleitungen verwöhnt. ;D

Also mein "Fach-Chinesisch" ist in diese Richtung ungefähr gleich null! :(

Ach ja, noch eine Frage dazu: Funktioniert Aranym auch unter "QNX Momentics"?? Damit bin ich z.Zt. des öfteren Online, neueste Version: 6.3.2.

Nachträglich noch ein gutes neues Jahr

MfG aus Augsburg

Mike 8)
800XL mit 1050 und Turbofreezer (RIP 2008); TT030 32MHz 4/8 MB und 100MB FP mit DataLight2, MultiTOS und NVDI3; Falcon030 16MHz, 4MB, 85MB Festplatte - (RIP 2009); aktuell: AMD Athlon II X2 220, 2x2.800 GHz, 6GB RAM, 2 Festplatten je 500 MB und eine für mich völlig überdimensionierte Grafikkarte! ;-)

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #10 am: Mi 09.01.2008, 09:14:57 »
Hallo Mikespeier,

da geht es mir genau so wie dir, ich mag das Englisch im altag auch nicht. Wenn ich wieder etwas mehr luft habe werde ich eine Deutsch Anleitung Schreiben aber momentan ist es Zeitmässig etwas eng.

Tschau Ingo

frank.lukas

  • Gast
Re: Netzwerk unter Aranym
« Antwort #11 am: Do 24.01.2008, 20:22:37 »
Hallo,

eine Deutsche Anleitung zu allen Sachen welche den Atari betreffen würde einiges vereinfachen aber vielleicht auch nicht ...

Es macht eine Menge Arbeit sowas ins Deutsche zu übersetzen.

Unter MiNT z.B. in den man pages ist auch alles nix mit Deutsch. Zumal alles sich auf Linux bezieht und spezielle MiNT Anleitungen sehr selten sind.

http://dict.tu-chemnitz.de/

da muss man sich halt durch wühlen oder fragen ...

guest1994

  • Gast
Re: Netzwerk unter Aranym
« Antwort #12 am: Do 31.01.2008, 23:53:40 »
Hallo allerseits,

ich hab mal schnell eine deutsche Anleitung meiner ursprünglichen Anleitung für den Mac zusammen gefasst. Gilt aber nur für die ganz aktuelle Version. Hab gerade noch eine kleine Änderung im Ethernetteil eingebaut.

Ihr findet das auf

  http://www.vi-su-systems.de/aranym.html

Grüße

  Jens

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #13 am: Fr 01.02.2008, 00:56:32 »
Danke für deine Arbeit, werde ich morgen gleich ins Aratuxmac einbauen.
Tschau Ingo

guest1994

  • Gast
Re: Netzwerk unter Aranym
« Antwort #14 am: Fr 01.02.2008, 17:02:18 »
Hab mal mit dem bestehenden aratuxmac getestet. Also config und /etc/resolv.conf entsprechend geändert. aratapif.sh dazu gepackt. Fertig mit der Konfiguration.

Aranym gestartet. Bash geladen. netsetup.sh ausgeführt (Wird nicht automatisch ausgeführt) und schon ist eine Ethernetkarte da.

Zum testen wär's übrigens auch gut einen ping dazu zu tun.

Grüße

  Jens

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #15 am: Fr 01.02.2008, 17:28:35 »
Hi,

das werde ich auch nochmal testen, klar Ping kann ich noch dazu packen. Mal schauen welches ich da nehme.
Tschau Ingo

guest1994

  • Gast
Re: Netzwerk unter Aranym
« Antwort #16 am: Fr 01.02.2008, 18:50:11 »
Vergiss. Ich hab vergessen das icmp ja nicht geht aus dem Gast raus.
Also erübrigen sich ping und traceroute.

Ansonsten fehlt nur der Aufruf von netsetup.sh in der mint.cnf (bzw. dort ist er auskommentiert)

  Jens

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #17 am: Fr 01.02.2008, 19:02:22 »
Jo werde ich machen, ich schau mir das nachher gleich an.
Tschau Ingo

Offline djbase

  • Benutzer
  • Beiträge: 216
Re: Netzwerk unter Aranym
« Antwort #18 am: Mi 06.02.2008, 20:19:44 »
Also ich habe das jetzt auch einmal ausprobiert, aber irgendwie bleibe ich immer an der gleichen Stelle hängen, wenn ich Netzwerk einbinden will. Die Zeile "Setting up networking: 172.16.1.101/255.255.255.0 -> 172.16.1.100" ist das letzte was ausgegeben wird, danach passiert nichts mehr.  ???

Offline tuxie

  • Benutzer
  • Beiträge: 6.830
  • Falcon! Milan! Schuetzt die Raubvoegel!
Re: Netzwerk unter Aranym
« Antwort #19 am: Mi 06.02.2008, 21:38:24 »
Naja ich habs noch nicht richtig hin bekommen dan Tun/Tap Treiber zu Installieren. Muß aber ehrlich sagen das ich noch keine richtige Zeit gefunden habe.
Tschau Ingo