URN Logo
UNIX Resources » Linux » Linux Forum » Gentoo Help » Page.10 » slip and slattach
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
slip and slattach
Subject: slip and slattach
Author: Lee Harr    Posted: 2005-06-28 09:35:47    Length: 441 byte(s)
[Original] [Print] [Top]
I am trying to use slattach to set up a slip
connection.

slip is built in to the kernel:

# dmesg | grep -i slip
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).


but when I try to create the interface ...

# slattach /dev/ttyS0
slattach: tty_get_state: Input/output error
slattach: tty_open: cannot get current state!


Any hints?

[Original] [Print] [Top]
Subject: slip and slattach
Author: Lee Miller    Posted: 2005-06-28 10:00:02    Length: 1,141 byte(s)
[Original] [Print] [Top]
On Tue, 28 Jun 2005 15:35:47 +0000, Lee Harr wrote:

QUOTE

I am trying to use slattach to set up a slip
connection.

slip is built in to the kernel:

# dmesg | grep -i slip
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).


but when I try to create the interface ...

# slattach /dev/ttyS0
slattach: tty_get_state: Input/output error
slattach: tty_open: cannot get current state!


Any hints?

Does /dev/ttyS0 exist?  What are its permissions and ownership?  My first
guess would be that you do not have permission to them.

What output do you get from the following commands:

   ls -lL /dev/ttyS0
   stty -a -F /dev/ttyS0

also the output of the following might be of help also

   whoami
   groups

[Original] [Print] [Top]
Subject: slip and slattach
Author: Lee Harr    Posted: 2005-06-28 11:43:27    Length: 1,958 byte(s)
[Original] [Print] [Top]
On 2005-06-28, Lee Miller [miller_lee_p@hotmail.com] wrote:
QUOTE
On Tue, 28 Jun 2005 15:35:47 +0000, Lee Harr wrote:


I am trying to use slattach to set up a slip
connection.

slip is built in to the kernel:

# dmesg | grep -i slip
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).


but when I try to create the interface ...

# slattach /dev/ttyS0
slattach: tty_get_state: Input/output error
slattach: tty_open: cannot get current state!


Any hints?

Does /dev/ttyS0 exist?  What are its permissions and ownership?  My first
guess would be that you do not have permission to them.

What output do you get from the following commands:

   ls -lL /dev/ttyS0
   stty -a -F /dev/ttyS0

also the output of the following might be of help also

   whoami
   groups



# ls -lL /dev/ttyS0
crw-rw----  1 root tty 4, 64 Jun 28 07:33 /dev/ttyS0
# stty -a -F /dev/ttyS0
stty: /dev/ttyS0: Input/output error


Hmm... I have used this serial line before to do PIC programming,
but that was a few months ago. Several kernel upgrades, etc.

It is not a permissions thing (running as root) but the stty
output definitely shows a problem.

dmesg shows this also:
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A


The serial line does not need to be plugged in to anything
just to do stty -a does it?

[Original] [Print] [Top]
Subject: slip and slattach
Author: Lee Harr    Posted: 2005-06-28 16:05:50    Length: 1,226 byte(s)
[Original] [Print] [Top]
QUOTE
I am trying to use slattach to set up a slip
connection.



I ran a getty on the serial line and was able to log in
that way, so there is no problem with the hardware or
the permissions.

Strangely, after I did that, slattach is sort of working.

The sl0 interface is created ...

sl0       Link encap:Serial Line IP
          POINTOPOINT NOARP MULTICAST  MTU:296  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

I can configure the ip address ...

ifconfig sl0 10.0.0.23 pointopoint 10.0.0.21

but no ping.


Well... I'll keep poking at it. Thanks for your help.

[Original] [Print] [Top]
« Previous thread
MySQL server only starting on localhost
Gentoo Help
Page. 10
Next thread »
probs emerging xfsprogs-2.6.25
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 13:18:19, cost 0.059989929199219 ms.