Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

slattach(8) [netbsd man page]

SLATTACH(8)						    BSD System Manager's Manual 					       SLATTACH(8)

NAME
slattach -- attach serial lines as network interfaces SYNOPSIS
slattach [-Hhlmn] [-s baudrate] [-t ldisc] ttyname DESCRIPTION
slattach is used to assign a tty line to a network interface which uses asynchronous serial lines. Currently the slattach command is used to attach sl(4) or strip(4) interfaces. These interfaces have to be created using the ifconfig(8) create subcommand before the slattach command. The network source and destination addresses and other interface parameters are configured via ifconfig(8). The following operands are supported by slattach: -H Turn on DTR/CTS flow control. By default, no flow control is done. -h Turn on RTS/CTS flow control. By default, no flow control is done. -l Turn on the CLOCAL flag, making it possible to run SLIP on a cable without modem control signals (e.g. DTR, DSR, DCD). -m Maintain modem control signals after closing the line. Specifically, this disables HUPCL. -n Don't detach from invoking tty. -s baudrate Specifies the speed of the connection. If not specified, the default of 9600 is used. -t ldisc Specifies the line discipline to use for the tty. Supported line disciplines are ``slip'' (creates a sl(4) instance) and ``strip'' (creates a strip(4) instance). If this option is not specified, the default is ``slip''. ttyname Specifies the name of the tty device. ttyname should be a string of the form 'ttyXX', or '/dev/ttyXX'. Only the super-user may attach a network interface. To detach the interface, use ``ifconfig interface-name down'' after killing off the slattach process. Interface-name is the name that is shown by netstat(1). EXAMPLES
slattach ttyh8 slattach -s 4800 /dev/tty01 DIAGNOSTICS
Messages indicating that the specified interface is not configured or created, the requested address is unknown, or that the user is not privileged but tried to alter an interface's configuration. SEE ALSO
netstat(1), daemon(3), netintro(4), sl(4), strip(4), ifconfig(8), rc(8), sliplogin(8), slstats(8) HISTORY
The slattach command appeared in 4.3BSD. BUGS
There is no way to specify the interface name (sl%d etc.) to be attached by the slattach command. There is no way to see which interface is assigned to the specified tty by the slattach command, either. It would be better if the network interfaces were created by the slattach command rather than by using the ifconfig(8) create subcommand before the slattach command. BSD
July 8, 2006 BSD

Check Out this Related Man Page

STRIP(4)						   BSD Kernel Interfaces Manual 						  STRIP(4)

NAME
strip -- Metricom Ricochet packet radio wireless network device SYNOPSIS
pseudo-device strip DESCRIPTION
The strip driver takes outbound network packets, encapsulates them using the Metricom "star mode" framing, and sends the packets out an RS-232 interface to a Metricom Ricochet packet radio. Packets arriving from the packet radio via the serial link are decapsulated and then passed up to the local host's networking stack. strip is an acronym for STarmode Radio IP. The strip interfaces can be created by using the ifconfig(8) create command. Each strip interface is a pseudo-device driver for the Metricom Ricochet packet radio, operating in peer-to-peer packet mode. In many ways, the strip driver is very much like the sl(4) SLIP pseudo-device driver. A strip device is attached to a tty line with slattach(8). Once attached, the interface is configured via ifconfig(8). The major difference between the sl(4) SLIP pseudo-device driver and the strip driver is that SLIP works only between two hosts over a dedicated point-to-point connection. In contrast, strip sends packets to a frequency-hopping packet radio, which can address packets to any peer Metricom Ricochet packet radio, rather than just to a single host at the other end of a point-to-point line. Thus, one strip pseudo-device is usually sufficient for any kernel. In other respects, a strip interface is rather like an Ethernet interface. Packets are individually addressed, and subsequent packets can be sent independently to different MAC addresses. However, the "star mode" framing and MAC addressing are not in any way compatible with Ethernet. Broadcast or multicast to more than one packet radio is not possible, due to the independent frequency-hopping operation of the packet radios. The interface flags IFF_POINTOPOINT and IFF_BROADCAST are not supported on the strip interface. In other words, strip implements a multiple-access, non-broadcast device, accessed via an RS-232 serial line, using a proprietary packet framing scheme. This version of the strip driver maps IP addresses to Metricom Ricochet packet radio addresses using statically configured entries in the normal routing table. These entries map IP addresses of peer packet radios to the MAC-level addresses. The exact syntax of this mapping and an example are discussed below. The Internet Assigned Numbers Authority (IANA) has allocated an ARP type code for use with STRIP. A future version of this driver will support arp(4) to obtain the IP address of reachable peer packet radios dynamically. ADDRESS CONFIGURATION
This version of the STRIP driver requires static pre-configuration of the mapping from IP addresses to packet radio MAC addresses. The route(8) command should be used to bind a peer STRIP host's packet radio IP address to the peer's link-level packet radio address. Radio addresses are encoded using the hex equivalent of the packet radio's decimal ASCII address. For example, the following route command will configure a routing entry to a packet radio with a MAC address of 1234-5678, and an IP address 10.11.12.13, reachable via the strip0 interface: route add -host 10.11.12.13 -link strip0:1:2:3:4:5:6:7:8 Generalising from this example to other IP addresses and to other 8-digit MAC addresses should be clear. RADIO CONFIGURATION
The Metricom Ricochet packet radios can auto-baud at speeds up to 38.4K baud. At higher speeds -- 57600 or 115200 -- the packet radio cannot autobaud. When running at high speeds, the packet radio's serial port should be manually configured to permanently run at the desired speed. Use a terminal emulator and the Hayes command ATS304=115200 to set the serial baudrate to the specified number (or 0 for autobaud). The com- mand AT&W will then save the current packet radio state in non-volatile memory. Metricom Ricochet packet radios can operate in either ``modem-emulation'' mode or in packet mode (i.e. "star mode"). The strip driver auto- matically detects if the packet radio has fallen out of "star mode", and resets it back into "star mode", if the baud rate was set correctly by slattach(8). SEE ALSO
arp(4), inet(4), sl(4), ifconfig(8), route(8), slattach(8) HISTORY
strip was originally developed for the Linux kernel by Stuart Cheshire of Stanford's Operating Systems and Networking group, as part of Mary Baker's MosquitoNet http://mosquitonet.stanford.edu/mosquitonet.html project. This strip driver was ported to NetBSD by Jonathan Stone at Stanford's Distributed Systems Group and first distributed with NetBSD 1.2. BUGS
Currently, strip is IP-only. Encapsulations for AppleTalk and ARP have been defined, but are not yet implemented in this driver. strip has not been widely tested on a variety of lower-level serial drivers. The detection and resetting of packet radios that crash out of "star mode" does not always work in this version of the driver. One work- around is to kill the slattach(8) process, ifconfig(8) the strip interface down, and then start a new slattach and rerun ifconfig to enable the interface again. BSD
December 5, 2004 BSD
Man Page