Initial import from FreeBSD RELENG_4:
[dragonfly.git] / share / examples / atm / atm-config.sh
1 #! /bin/sh
2 #
3 #
4 # ===================================
5 # HARP  |  Host ATM Research Platform
6 # ===================================
7 #
8 #
9 # This Host ATM Research Platform ("HARP") file (the "Software") is
10 # made available by Network Computing Services, Inc. ("NetworkCS")
11 # "AS IS".  NetworkCS does not provide maintenance, improvements or
12 # support of any kind.
13 #
14 # NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
15 # INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
16 # AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
17 # SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
18 # In no event shall NetworkCS be responsible for any damages, including
19 # but not limited to consequential damages, arising from or relating to
20 # any use of the Software or related support.
21 #
22 # Copyright 1994-1998 Network Computing Services, Inc.
23 #
24 # Copies of this Software may be made, however, the above copyright
25 # notice must be reproduced on all copies.
26 #
27 #       @(#) $FreeBSD: src/share/examples/atm/atm-config.sh,v 1.2 1999/08/28 00:19:07 peter Exp $
28 #
29 #
30
31 #
32 # Sample script to load and configure ATM software
33 #
34
35 #
36 # Download FORE microcode into adapter(s)
37 #
38 # This step is only required if you are using FORE ATM adapters.
39 # This assumes that the FORE microcode file pca200e.bin is in /etc.
40 # See the file fore-microcode.txt for further details.
41 #
42 /sbin/fore_dnld -d /etc
43
44 #
45 # Define network interfaces
46 #
47 /sbin/atm set netif hfa0 <netif_prefix> 1
48
49 #
50 # Configure physical interfaces
51 #
52 /sbin/atm attach hfa0 uni31
53
54 #
55 # Start ILMI daemon (optional)
56 #
57 /sbin/ilmid
58
59 #
60 # Set ATM address prefix
61 #
62 # Only need to set prefix if using UNI and not using ILMI daemon
63 #
64 #/sbin/atm set prefix hfa0 <nsap_prefix>
65
66 #
67 # Configure network interfaces
68 #
69 /sbin/ifconfig <netif> <ip_addr> netmask + up
70 /sbin/atm set arpserver <netif> <atm_address>
71
72 #
73 # Configure PVCs (optional)
74 #
75 #/sbin/atm add pvc hfa0 <vpi> <vci> aal5 null ip <netif> <ip_addr>
76
77 #
78 # Start SCSP daemons (optional)
79 #
80 # This step is only required if your host is configured as an ATMARP server
81 # and you wish to synchronize its cache with the cache(s) of some other
82 # server(s).  Scspd will look for its configuration file at /etc/scspd.conf.
83 #
84 #/usr/sbin/scspd
85 #/usr/sbin/atmarpd <netif> ...
86
87 exit 0
88