University of Louisiana at Lafayette
Computing Support Services

Configuring Linux for STEP-UP

SELF-HELP GUIDES > STEP-UP > LINUX

These instructions should be sufficient for most versions of the Linux operating system. Dialup to the campus network requires the use of a modem and a telephone line. Local and long-distance telephone charges may apply.
  1. Set a DNS: echo "nameserver 130.70.128.2" >> /etc/resolv.conf
  2. If pppd is the PPP daemon used, add a line to /etc/ppp/pap-secrets as:
    MYCLID * PASSWORD *
    where: MYCLID is your UCS id, and PASSWORD is your UCS password. The first '*' means any Cisco server will do, and the second '*' means that any IP address provided is acceptable.
  3. Arrange to include the name MYCLID option on the pppd invocation line. On RedHat systems, a file called /etc/sysconfig/network-scripts/ifcfg-ppp5 should include this line: PAPNAME=myclid
  4. The chat script is minimal; you only have to dial the number and wait for the CONNECT message from the modem. Some systems do this in the file /etc/sysconfig/network-scripts/chat-ppp5 which contains:
              'ABORT' 'BUSY'
              'ABORT' 'ERROR'
              'ABORT' 'NO CARRIER'
              'ABORT' 'NO DIALTONE'
              '' 'ATZ'
              'OK' 'ATE0DT7617837'
              'CONNECT' ''
    To disable call waiting, the dialing string would be 'ATE0DT*70,7617837' off-campus or 'ATE0DT0029#9,7617837' on campus.
  5. Under RedHat, the Control-Panel's Network-Configurator may prove helpful to build the files described above. Select either at-boot, to dialup UL Lafayette as your system boots up, or arrange a demand-dial or manual-dial configuration. This script will manually dial UL Lafayette:
              #!/bin/sh
    
              cd /etc/sysconfig/network-scripts
              ./ifup-ppp ./ifcfg-ppp5
    
              echo "Dialing UL STEPUP"
              echo "To hangup, type: hangup"
    
              if [ -f /var/log/messages ]; then
              echo Showing progress ... press Enter to quit
              tail -c 0 -f /var/log/messages &
              read
              trap "" 9
              killall -9 tail 2>/dev/null
              fi
    
              # is the ppp0 device available? (this catches failures)
              /sbin/ifconfig ppp0 2>&1 | grep -s "UP" > /dev/null
              if [ "$?" != "0" ]; then
              echo "Failed..."
              exit 0
              fi
    
              route add default ppp0
  6. The hangup script would look like this:
    			#!/bin/sh
    			kill -9 'cat /var/lock/LCK..modem'
  7. The pppd invocation thus looks like this (ps axlwww|grep pppd):
    /usr/sbin/pppd -detach lock modem crtscts defaultroute name MYCLID \
    debug /dev/modem 38400 remotename ppp5 ipparam ppp5 connect \
    usr/sbin/chat -v -f /etc/sysconfig/network-scripts/chat-ppp5



© Copyright 2002 by the University of Louisiana at Lafayette
Computing Support Servicees, P.O. Box 42770, Lafayette LA 70504
Phone: 337/482-5516 · E-Mail: helpdesk@louisiana.edu