LJ Archive

Listing 1: Script to Configure the ATM Interface

#!/bin/sh
#
# Initializes the atm interfaces on
# your system
IPADDR="192.168.1.10"
NETMASK="255.255.255.0"
NETWORK="192.168.1.0"
BROADCAST="192.168.1.255"
ARPSERVER="192.168.1.1"
ARPSRVNSAP="47.0005.80.ffe100.0000.f21c.0d9f.0020481c0d9f.00"
#
# NOTE: We change the SDU size below when
# using the Efficient ENI-1* *55P
# adapter cards.
#
SDU_SIZE="4352"
MTU_SIZE="4344"
#
# start up the daemons needed for UNI
# signaling and ATMARP
# (If you are using PVCs only, you don't
# need atmsigd and ilmid, but
# you still need atmarpd for PVCs!)
/usr/local/atm/bin/atmsigd -b
/usr/local/atm/bin/ilmid -b
/usr/local/atm/bin/atmarpd -b
#
# create the atm interface
/usr/local/atm/bin/atmarp -c atm0
# configure the atm interface
/sbin/ifconfig atm0 ${IPADDR} broadcast \
  i${BROADCAST} netmask ${NETMASK} * \
  *mtu ${MTU_SIZE}
/sbin/route add -net ${NETWORK} netmask ${NETMASK} atm0
#
# set the atmarp server nsap address
/usr/local/atm/bin/atmarp -s ${ARPSERVER} \
  ${ARPSRVNSAP} qos ubr:sdu=9188 * *arpsrv
#
# tell atmarp the max sdu for the network
# interface
/usr/local/atm/bin/atmarp -q ${NETWORK} \
  ubr:sdu=${SDU_SIZE}
#
# The next line creates a PVC from this
# node to node2 over
# VPI 0, with VCI 70. Note that you can
# use the host name from the /etc/hosts file.
#
/usr/local/atm/bin/atmarp -s node2 0.0.70
LJ Archive