#!/bin/sh set -x

#

# ISABEL NETWORK CONFIGURATION

# SCRIPT FOR A FORE SB-200

# Author: Shuyang Shi, Nov. 4, 1997

#

# Set the following:

#

# -> your ATM interface IP address

# -> router interface IP address in the same subnet

# -> VP

# -> VC unicast

# -> VC unicast peak rate (kbps)

# -> VC multicast upstream

# -> VC multicast upstream peak rate (kbps)

# -> VC multicast downstream

# -> VC multicast downstream peak rate (kbps)

# -> path to fore binaries

#



#

# History:

#

# 1.the configuration is for Isabel events of

# Telenoplis97 and APEC97 on congress center on Sept., 1997.

# for both evens CRC node (199.71.84.60) is as router point.

# there are 3 VCs assigned between CRC node and Carleton site

# (bogie on the conference room of dept. of SCE, 199.71.84.57),

# one bi-directional unicast VC: 670, two uni-directional multicast:

# VCs 671 down from CRC to bogie-atm, and 674 up to CRC-router.

# the netmask is 255.255.255.248.

# 2.the second event on Nov. 4. set the peak value of

# unicast VC to 1063KBps, and that of multicast VC to 5321(Kbps).

#



MY_ADDRESS=199.71.84.57

MY_ROUTER=199.71.84.60

MY_NETMASK=255.255.255.248

VP=0

UNICAST_VC=670

UNICAST_PEAK=1063

MULTICAST_UP_VC=674

MULTICAST_UP_PEAK=5321

MULTICAST_DOWN_VC=671

FOREPATH=/usr/fore/etc





# configure ATM interface



ifconfig fa0 $MY_ADDRESS netmask $MY_NETMASK -trailers up



# a few low level settings... :



# Our ATM cade doesn't support SDH, so comment out the next line

#

#$FOREPATH/atmconfig -f sdh fa0



$FOREPATH/atmconfig -s off fa0

$FOREPATH/atmconfig -b on

$FOREPATH/atmconfig -p on fa0





# UNICAST

# unicast net TX



$FOREPATH/atmarp -s $MY_ROUTER

fa0 $VP $UNICAST_VC 5 $UNICAST_PEAK



# unicast net RX



$FOREPATH/atmarp -l fa0 $VP $UNICAST_VC 5





# MULTICAST

# multicast RX



$FOREPATH/atmarp -l fa0 $VP $MULTICAST_DOWN_VC 5



# multicast TX



$FOREPATH/atmarp -u

$FOREPATH/atmarp -m fa0 $VP $MULTICAST_UP_VC 5 $MULTICAST_UP_PEAK



#

# ADD ROUTES TO ALL HOSTS IN ISABEL NETWORK

#

# (EXCEPT YOURS obviously, SO COMMENT YOUR OWN LINE IF IT IS HERE

#





########################################################

# UNICAST ROUTES

########################################################





#route add net 138.4.29.64 $MY_ROUTER 1

#DIT-UPM-bote Spain SERVER



#route add net 138.4.30.0 $MY_ROUTER1

#tuno my site



#route add net 138.4.30.64 $MY_ROUTER 1

#tdos site two



#route add net 138.4.30.128 $MY_ROUTER 1

#ttres site three



# for bogie-atm at the event involving CRC-router

#

route add 199.71.84.0 $MY_ROUTER 1

route add 199.71.88.0 $MY_ROUTER 1

#route add 199.71.xx.0 $MY_ROUTER 1



########################################################



# MCAST ROUTE



########################################################



#route delete 224.0.0.0 bogie 2> /dev/null



#route add 224.0.0.0 $MY_ADDRESS 0