Attaches serial lines as network interfaces.
/usr/sbin/slattach TTYName [ BaudRate DialString [ DebugLevel ] ]
The /usr/sbin/slattach command assigns a TTY line to a network interface.
The slattach command is run by the /etc/rc.net file during system startup to automatically configure any Serial Line Internet Protocol (SLIP) network interfaces defined by the System Management Interface Tool (SMIT). SLIP interfaces can also be configured manually as shown in the examples section.
For a directly connected SLIP interface, broken connections are retried automatically without manual intervention. For a SLIP interface connected by modem, broken connections must be manually redialed. If a user supplies a dial string in the slattach command line, the user must re-enter the command and dial string to restore a broken connection.
To detach the interface, run the ifconfig Interface down command after terminating the slattach command. The Interface parameter is the name shown by the netstat command.
If configuring a slip interface from the command line, the /usr/sbin/ifconfig command must be invoked for the slip interface with the appropriate parameters and the slip tty line discipline must also be available in order for this command to succeed. To check if the slip tty line discipline is already loaded, run the command strinfo -m | grep slip. If no output is shown, the module has not yet been loaded. Load the module by issuing the command strload -m /usr/lib/drivers/slip.
Notes:
- Once the SLIP interface has been configured with ifconfig, any user who has permission on the TTY may issue the slattach command.
- You must configure the tty devices used by the slattach command before establishing a connection. You may also need to make an entry for the tty device in the BNU /usr/lib/uucp/Devices file.
- Sample shell script, /usr/sbin/slipcall, provides a simplified interface for invoking slattach and connecting to remote systems. slipcall is useful for connecting to dial-in SLIP networks which require a user to login before activating the SLIP tty line discipline. The basic configuration of slipcall will connect to other AIX systems with sliplogin configurations and derive the local and remote internet addresses and network mask assigned by the called system. It then configures the local interface with the remote system's specified values.
slattach /dev/tty1This command attaches tty1 to a network interface to be used by the SLIP.
slattach /dev/tty1 9600 '""AT OK \pATF1 OK \pATDT34335 CONNECT""'
/etc/uucp/Devices | Lists definitions of devices used for remote connections. |
The ifconfig command, netstat command, sliplogin command.
TCP/IP Network Interfaces in AIX Version 4.3 System Management Guide: Communications and Networks.