SLIP/PPP questions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SLIP/PPP questions
# 1  
Old 09-30-2010
SLIP/PPP questions

Hello all..

I need to script SLIP dial-up connections and wanted ask others about the following;

- does pppd support SLIP (noticed some releases do and some don't)
- if pppd doesn't support SLIP can bash variables be passed to a dip script (e.g. phone-number, ip-address)
- or is another means of establishing a SLIP connection

I have PPP dial-up connections working and was curious if anyone has ran into the following problem;

- each PPP connection established has a unique unit id (e.g. ppp0, ppp1 - basically the device numbers/indexes, in my case, are unique)
- from time to time chat timeout errors occur when initiating more than one PPP connection simultaneously (e.g. ppp0 on tty00, ppp1 on tty01, ppp2 on tty02)

Please advise if additional information is needed and I am using Ubuntu.

Thanks in advance.

Last edited by LAVco; 09-30-2010 at 09:03 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

No SMS notifications once ppp up

Hi all, I have an Siemens IoT2020 with a Sim7000e cellular board that I connect via USB to the board and connect to Telstra Cat-M1 network. I can send and receive SMS and do so using Node-Red but can also do with Minicom etc. When connected I get : root@iot2000:~# dmesg | grep USB ACPI:... (0 Replies)
Discussion started by: antc
0 Replies

2. UNIX for Dummies Questions & Answers

Not able to dial specific number using ppp

Hi all, I'm working on ppp establishment. When I tried calling a number using ppp, I could establish a PPP connection successfully. But, when I tried calling another ISP number, it is asking for authentication details whereas that is not the case with the other number. It throws an error saying... (0 Replies)
Discussion started by: sai2krishna
0 Replies

3. IP Networking

Load Balancing ppp

Hello everybody How can i Load Balance two slow ppp(gprs) connections with iptables . (4 Replies)
Discussion started by: rink
4 Replies

4. BSD

FreeBSD 8.2 Huawei E1750 ppp

Hi guys My DSL went down this morning and I needed internet to work. I searched for a config all over but couldn't find exactly what I wanted. After a bit I got mine working fine so I thought I'd post this to help anyone else out there. I am using a Huawei E1750 on T-Mobile UK running FreeBSD... (0 Replies)
Discussion started by: cmilos
0 Replies

5. Shell Programming and Scripting

Help with dial-up to multiple ppp servers

Hello all, I am trying to establish two ppp connections using chap authentication over dial-up. I am using the generic connect scripts and can connect to the first server but when I try to connect the second while the first one is connected there is a chat timeout that occurs. Any... (6 Replies)
Discussion started by: LAVco
6 Replies

6. Solaris

install PPP on Solaris 9

Background: I have been running Solaris 8 on an Ultra5 with 128MB and 4GB disk for years without upgrade. If it ain’t broke, don’t fix it. Now my ISP has upgraded their software, and no longer talks to my old (asppp!) software. Sun no longer ships newer versions of Solaris 8. So I bought Solaris... (1 Reply)
Discussion started by: sandee
1 Replies

7. IP Networking

CCP In PPP

Hi, I am using linux-2.6.10 mandrake. In which i am establishing PPP sessions with the peer.During the PPP negotiations i negotiate even CCP-deflate compression option. I just wanted to know the amount of memory which is being used in kernel space by the compression algorithms,when a ccp... (0 Replies)
Discussion started by: sriram.ec
0 Replies

8. IP Networking

How to get Caller Id in PPP

hello I am workin with PPP to send data from dos machine to unix & Linux machine using FTP with help of fax & voice modem(Caller id Enabled & Exchange provides facility). i need to identify phone(number) connect with Dos machine i.e. to identify from where data is send. so i want to get the... (0 Replies)
Discussion started by: yspl
0 Replies

9. IP Networking

PPP Network through TCP/IP

I have two unix systems. One is Redhat Linux and the other is Sun Solairs. I am runing PPP on my Linux machine but not on my Solaris machine. TCP/IP connects the two machines. I want to pick up PPP on both machines simultaneously with only one dial up connection on my linux machine. ... (4 Replies)
Discussion started by: Photon_Blast
4 Replies

10. UNIX for Dummies Questions & Answers

PPP in netcfg

Hi! I'm using RedHat 7.1 and I have some prolems with connecting with ppp. I have run modemtool and told that I'm using ttyS0. Whe I then try to set up a PPP connection using netcfg the PPP option is not there. I have all the other alternativs except PPP. What have I missed? (6 Replies)
Discussion started by: <Therapy>
6 Replies
Login or Register to Ask a Question
startslip(8)						      System Manager's Manual						      startslip(8)

NAME
startslip - Configures SLIP connections SYNOPSIS
/usr/sbin/startslip [-i filename] OPTIONS
Specifies the file containing the startslip subcommands for dial-out connections. DESCRIPTION
The startslip program configures two types of SLIP connections: Dial-in connections -- The system is to answer calls from remote systems. Dial-out connections -- The system is to place calls to a remote system. Dial-in Connections If your system is configured as a dial-in system, a getty process is continuously run on the serial line that is connected to a modem. When a call comes in, getty prompts for a login name. If the login name matches a SLIP user name entry in the /etc/passwd file, getty starts startslip as a login shell. The startslip program then reads the /etc/slhosts files until it finds an entry matching the current login name. If an entry is found, startslip configures the tty line as a SLIP link using information in the slhosts file entry. See Network Administration for information on setting up your system as a SLIP dial-in system. Dial-out Connections If your system is configured as a dial-out system and you want to create a SLIP connection to a remote system, you invoke the startslip program from the command line and specify -i filename. The filename file contains the startslip subcommands to set up the dial-out connec- tion (see the Subcommands section). After making the connection, startslip runs in the background. When you are finished with the SLIP connection, you can either turn off your modem or kill the tty process. The tty process ID is stored in the /var/run/ttyxx.tel-pid file, where ttyxx specifies the terminal line. Subcommands The following startslip subcommands can be used to set up SLIP dial-out connections. The subcommands are specified in a SLIP setup script file that is passed to startslip with the -i filename option. In the setup script file, any text following the comment character (#) is ignored. In addition, each line can contain up to 256 characters. Specifies the callback option. If this subcommand is specified, start- slip raises Data Terminal Ready (DTR) if carrier is lost during a read from the serial line. Causes startslip to configure the network interface with the values specified with the myip, dstip, and netmask subcommands, and to attach the serial line to the network interface. If the gateway is specified, it also adds the destination IP address as the default gateway. Specify this subcommand at the end of the script file. Specify the myip, dstip, netmask, and, optionally, gateway subcommands prior to connslip. Enables debugging and prints debug messages to the logfile file. Specify this subcommand at the beginning of the script file. Dials the telephone_number. The format of telephone_number is a string of numbers with no separators. Specify this subcommand after opentty and modemtype. Sets destination IP address. You can specify either a host name or IP address. Terminates startslip and exits. Causes startslip to wait to receive string from the remote host. If a match occurs, startslip continues read- ing this file. If a match does not occur after the specified seconds, startslip prints message and exits. Specify this subcommand after opentty. Flushes the read and write queues. Sets the destination IP address as the default gateway. Specifies a hard-wired link. Ignore modem control signals (CLOCAL flag set in termios structure) when switching to a SLIP connec- tion. Enables ICMP traffic suppression. Sets the modem type. The modem_name specified must be defined in the /etc/acucap file. Sets my local IP address. You can specify either a host name or IP address. Sets the network mask. Opens the ttyxx serial line and sets line speed to baud_rate. The value for baud_rate must be one of the standard speeds listed in </usr/include/sys/termios.h>. Prints string to the standard output; everything to the end of the line, including punctuation, is printed. Use this subcommand to cue the user as to which subcommand is executing. Causes startslip to read either the local IP address, destination IP address, or network mask from the remote system in dotted decimal notation. Use this subcommand after opentty. An expect subcommand should be used prior to raddr ensure that the desired information is read. Sends the string to the serial line. Use this subcommand after opentty. If string is set to the keyword ASKPASSWD, startslip prompts for a password, reads it from standard input, and sends it to the serial line. Causes startslip to sleep number_of_seconds before continuing to read subcommands. Displays current status of start- slip. Enables TCP header compression. Enables automatic TCP header compression. RESTRICTIONS
Only a person with superuser authority can run the startslip program. EXAMPLES
The following sample setup script file shows how to use various startslip dial-out subcommands. debug /tmp/debuglog myip 27.140.208.38 dstip 27.140.208.40 netmask 255.255.255.0 # set modemtype before dialing # microcom modem attributes defined in /etc/acucap modemtype microcom printmsg open /dev/tty00 at speed 38400 opentty tty00 speed 38400 printmsg dial 18154231234 dial 18154231234 # expect login prompt. timeout and exit after 5 seconds. expect ogin: timeout 5 errmsg "not getting login: prompt" printmsg send login send sliplogin # expect password prompt. timeout and exit after 5 seconds. expect assword: timeout 5 errmsg "not getting Password: prompt" printmsg Prompt and send password send ASKPASSWD # expect Starting SLIP after login expect SLIP timeout 10 errmsg "not getting startup message" # connect slip - ifconfig, slattach printmsg connect slip connslip FILES
Specifies the command path Contains the startslip process ID Specifies the termios header file SEE ALSO
Commands: ifconfig(8) Files: acucap(4), slhosts(4) Network Administration Specifications: A Nonstandard for Transmission of IP Datagrams Over Serial Lines: SLIP (RFC1055) Compressing TCP/IP Headers for Low-speed Serial Links (RFC1144) startslip(8)