From owner-freebsd-stable@FreeBSD.ORG Fri Jan 22 08:02:32 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECB43106566B for ; Fri, 22 Jan 2010 08:02:31 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 77CF18FC0C for ; Fri, 22 Jan 2010 08:02:30 +0000 (UTC) Received: (qmail 41025 invoked from network); 22 Jan 2010 08:02:29 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.129.211.242) by smtp004.apm-internet.net with SMTP; 22 Jan 2010 08:02:29 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.3/8.14.3) with ESMTP id o0M82TL2084197; Fri, 22 Jan 2010 08:02:29 GMT (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.3/8.14.3) with ESMTP id o0M82S69015969; Fri, 22 Jan 2010 08:02:28 GMT (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.3/8.14.3/Submit) id o0M82N2e015968; Fri, 22 Jan 2010 08:02:23 GMT (envelope-from njm@njm.me.uk) Date: Fri, 22 Jan 2010 08:02:23 +0000 From: "N.J. Mann" To: Marin Atanasov Message-ID: <20100122080223.GA6681@titania.njm.me.uk> Mail-Followup-To: Marin Atanasov , Jeremy Chadwick , freebsd-hardware@freebsd.org, freebsd-stable@freebsd.org, Ronald Klop References: <717f7a3e1001120714m37aada69gfaa35f0f9b17f435@mail.gmail.com> <44678539@bb.ipt.ru> <717f7a3e1001142234y1de7ae15x6853e3ddcab4add9@mail.gmail.com> <717f7a3e1001192246o4dce4a82q57c05ff3f41b5feb@mail.gmail.com> <20100120074611.GA405@icarus.home.lan> <717f7a3e1001210137p7884adcbxc66a4f7fff928821@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <717f7a3e1001210137p7884adcbxc66a4f7fff928821@mail.gmail.com> X-Operating-System: FreeBSD 7.2-STABLE User-Agent: mutt-NJM (2009-12-30) Cc: Ronald Klop , freebsd-stable@freebsd.org, Jeremy Chadwick , freebsd-hardware@freebsd.org Subject: Re: Multiple serial consoles via null modem cable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 08:02:32 -0000 In message <717f7a3e1001210137p7884adcbxc66a4f7fff928821@mail.gmail.com>, Marin Atanasov (dnaeon@gmail.com) wrote: > Hello Jeremy, > > Now I'm a little confused :) > > I've made some tests with my machines and a couple of null modem cables, and > here's what I've got. > > On Wed, Jan 20, 2010 at 9:46 AM, Jeremy Chadwick > wrote: > > > On Wed, Jan 20, 2010 at 08:46:48AM +0200, Marin Atanasov wrote: > > > Hello, > > > > > > Using `cu' only works with COM1 for me. > > > > > > Currently I have two serial ports on the system, and only the first is > > able > > > to make the connection - the serial consoles are enabled in /etc/tty, but > > as > > > I said only COM1 is able to make the connection. > > > > I'm a little confused by this statement, so I'll add some clarify: > > > > /etc/ttys is for configuring a machine to tie getty (think login prompt) > > to a device (in this case, a serial port). Meaning: the device on the > > other end of the serial cable will start seeing "login:" and so on > > assuming you attach to the serial port there. > > > > For example: > > > > box1 COM1/ttyu0 is wired to box2 COM3/ttyu2 using a null modem cable. > > box1 COM2/ttyu1 is wired to box2 COM4/ttyu3 using a null modem cable. > > > > On box1, you'd have something like this in /etc/ttys: > > > > ttyu0 "/usr/libexec/getty std.9600" vt100 on secure > > ttyu1 "/usr/libexec/getty std.9600" vt100 on secure > > > > Here's what I did: > > box1 COM1/ttyd0 -> box2 COM1/ttyd0 -> using null modem cable > box1 COM2/ttyd1 -> box3 COM1/ttyd0 -> using null modem cable > > On box1 I have this in /etc/ttys: > > ttyd0 "/usr/libexec/getty std.9600" vt100 on secure > ttyd1 "/usr/libexec/getty std.9600" vt100 on secure > > Now if I want to connect to box1 from box2 or box3 through the serial > connection it should work, right? > But I only can connect to box1 from box2, because box2's COM port is > connected to box1's COM1 port. > > >From box2 I can get a login prompt > box2# cu -l /dev/cuad0 -s 9600 > Connected > > login: > ) > (host.domain) (ttyd0) > > login: ~ > [EOT] > > But if I try to connect to box1 from box3 - no success there. > box3# cu -l /dev/cuad0 -s 9600 > Connected > ~ > [EOT] You need to reduce the number of unknowns, e.g. where is the problem: box1, box3 or in between. So, swap the cables on box1 so that you now have box1:COM1 -> box3:COM1 and box1:COM2 -> box2:COM1. Now repeat the tests above and post your results. Cheers, Nick. --