jay-fisi
Goto Top

Solaris 10: Serielle Verbindung / Null modem Kabel HILFE

Hallo

Ich bin schon am Verzweifeln, da ich schon seit Tagen in Google nach einer Lösung suche. Auch hier im Forum habe ich schon gesucht...Vielleicht weiss einer von euch ne Lösung:

Ich möchte von einem Solaris 10 Rechner (Dell Laptop) auf eine Sun Fire v120 per Null Modem Kabel verbinden...
Nur komm ich einfach nicht dahinter wie man das macht. Ich habe es bereits mit "tip hardwire" versucht jedoch bekomme ich da die Meldung "all ports busy"....
Deswegen habe ich in der /etc/remote den eintrag dev/term/b in /dev/term/a geändert....jetzt bekomme ich aber die Meldung "connected" aber es tut sich nichts....
Was mach ich denn nur falsch? Habe schon überlegt ob die com Schnittstelle nicht erkannt wurde....jedoch habe ich keine Ahnung wie ich das herausfinden kann?

Content-Key: 22786

Url: https://administrator.de/contentid/22786

Printed on: April 16, 2024 at 15:04 o'clock

Mitglied: 8343
8343 Jan 04, 2006 at 15:02:53 (UTC)
Goto Top
Use SLIP!

Slip(Serial Line Internet Protocol)

two computers - root access on both

free serial ports on both machines

tcp/ip utilities:
route
ifconfig
ping
etc/services
etc/hosts
etc/protocols
general utilities
/bin/telnet
/bin/sh
slip compiled into the Linux kernel, or
slip functionality thru modules- modprobe, slip.o

special serial cable or connector - "null modem"

If you want to make one, here's how to do it:
You need two connectors, which fit into your serial ports. They can be either 9 pins or 25 bins. The important pins are:
25 pin connector:
pin 2 - write data
pin 3 - read data
pin 7 - ground

9 pin connector:
pin 2 - read data
pin 3 - write data
pin 5 - ground

To make a cable, all you have to do is connect the pins like this:

ground <-> ground
read data <-> write data
write data <-> read data

(where <-> is the cable)

My case:

1. 586 - 90 mhz - 32 meg running Debian Linux 2.1 -standalone - kernel 2.0.29

2. 586sx 233 mhz - 64 meg running Debian Linux 2.1 - standalone - kernel 2.4.5

My steps:

1. setup etc files on both computers

protocols
services

hosts - on 586 233mhz computer (superlinux)

127.0.0.1 localhost

192.168.93.1 superlinux superlinux
192.168.93.2 palmax

hosts - on 586 90hmz computer (palmax)

192.168.93.2 locahost

192.168.93.2 palmax palmax
192.168.93.1 superlinux

2. setup slip startup script files

slip-up.sh on machine 1 and

slip-up.sh on machine 2 (see bottom of document for examples)

3. setup cable between the two computer

both my machines have two serial ports

port # 0 is 0x3F8 irq 4 on both
port # 1 is begin used for slip on both
restart both machines

4. run slip-up.sh on both machines

5. test network settings and connection

route should print out localhost and other machine

ifconfig should printout lo and sl0 address

then using ping should get response from remote computer for example: ping sag ping baby

6. have daemons running or available on each machine

inetd

in.telnetd
in.ftpd

7. enjoy it!

telnet should log in to remote

ftp can be used to transfer files

8. setup NFS for mouting network drives

slip-up.sh on machine 2 - superlinux:

1. !/bin/sh

slattach -s 115200 -p slip /dev/ttyS1 &

sleep 1

/sbin/ifconfig lo up
/sbin/route add 192.168.93.1
/sbin/ifconfig sl0 192.168.93.1 pointopoint 192.168.93.2 up
/sbin/route add 192.168.93.2 dev sl0

slip-up.sh on machine 1 - palmax:

1. !/bin/sh

slattach -s 115200 -p slip /dev/ttyS1 &

sleep 1

/sbin/ifconfig lo up
/sbin/route add 192.168.93.2
/sbin/ifconfig sl0 192.168.93.2 pointopoint 192.168.93.1 up
/sbin/route add 192.168.93.1 dev sl0
Member: sairath
sairath Jan 24, 2006 at 17:32:04 (UTC)
Goto Top
(Since the reply was in English, I have included an English translation below - scroll down)

SLIP ist in diesem Fall vermutlich keine Lösung - das ganze hört sich eher nach einer seriellen Konsole an. Ich tippe eher auf ein falsch belegtes Kabel.

Die Schnittstelle wird offenbar erkannt (tip sagte "connected" auf /dev/term/a - wenn der Port nicht erkannt worden wäre würde es einen Fehler liefern).

Der serielle Port beim Dell ist vermutlich eine 9-polige Sub-D-Buchse. Für ein einfaches serielles Kabel (keine Handshake-Leitungen, nur RxD, TxD und GND) sind, wie von kofen beschrieben, Pins 2 (RxD). 3 (TxD) und 5 (GND) interessant.

Die V120 hat eine RJ45-Buchse als seriellen Port. Hier sind Pins 3 (TxD), 4 (GND) und 6 (RxD) interessant.

Ein (einfaches) Nullmodemkabel muß nun RxD mit TxD und GND mit GND verbinden. Daher ergibt sich für das Kabel folgende Belegung:

Dell (D-Sub 9) <---- Signal ----> V120 (RJ45)

2 RxD <---------- 3 TxD
3 TxD ----------> 6 RxD
4 GND <--------> 4 GND

Erster Schritt wäre also zu testen, ob das Kabel diese Verbindungen auch herstellt (häufige Fehlerquelle: RxD mit RxD verbunden). Wenn ich mich recht erinnere (ist 'ne Weile her und ich hab' keine Sun mit RJ45 als seriellerm Port zur Hand) kann man als serielles Kabel ein Konsole-Kabel für Cisco-Router (blaues Kabel mit 2x RJ45 und ein Adapter auf D-Sub 9) verwenden, wenn zur Hand.

Stimmt meine Vermutung bezüglich der seriellen Konsole (Laptop als Konsole an der V120)?

--- English Translation ---

SLIP probably isn't viable in this case - to me it sounds more like a serial console connection. The culprit probably is an incorrect serial cable.

tip apparently recognizes the serial port (judging from it saying "connected" after changing the port to /dev/term/b in /etc/remote). If the serial port was absent/not detected/busy, tip would have reported that as an error.

The Dell probably has a female 9-pin Sub-D for it's serial Port. For a simple serial cable (no hardware handshare, only RxD, TxD and GND are used) the interesting pins - as kofen already described - are 2 (RxD), 3 (TxD) and 5 (GND).

The V120 uses RJ45 for the serial ports. The interesting pins on this side are 3 (TxD), 4 (GND) and 6 (RxD).

A (simple) null-modem cable connects RxD on one side with TxD on the other and GND with GND. Thus, a serial cable in this case should connect:

Dell (D-Sub 9) <---- Signal ----> V120 (RJ45)

2 RxD <---------- 3 TxD
3 TxD ----------> 6 RxD
4 GND <--------> 4 GND

So the first step would be to check if the cable actually does connect those signals (a common mistake is to pick the wrong type of cable and connecting RxD with RxD). If I remember correctly (it's been a while and I don't have a Sun with RJ45 ports handy), a Cisco console cable (the light blue rollover cable with 2x RJ45 and an RJ45 to Sub-D 9 adapter) can be used as a serial console cable with the V120, if you happen to have one.

Did I assume correctly that this is about using the Dell as a serial console for the V120?
Member: pertlma
pertlma Mar 07, 2006 at 15:24:11 (UTC)
Goto Top
Hallo Jay_Fisi,

An welchen Ports hast du denn die Kabel angeschlossen.
Es gibt bei einer V120 SerialMgt und NetMgt (ich glaube sie heissen so)

Probier mal tip -9600 /dev/term/a

Wichtig -9600, da das die Baudrate festlegt.

Gruss,
pertlma
Member: cuba
cuba Aug 09, 2006 at 11:14:20 (UTC)
Goto Top
Wenn es wirklich darum geht die Maschine zum Beispiel über die Serielle Management console zu installieren bzw administrieren sollte man auch das input- und output-device im OBP anpassen.

setenv input-device ttya (ttyb)
setenv output-device ttya

reset-all

Dannach wird input und output device auf die serielle Schnittstelle umgeleitet.