Merge from vendor branch LIBARCHIVE:
[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 #       @(#) $DragonFly: src/share/examples/atm/atm-config.sh,v 1.2 2003/06/17 04:36:57 dillon Exp $
29 #
30 #
31
32 #
33 # Sample script to load and configure ATM software
34 #
35
36 #
37 # Download FORE microcode into adapter(s)
38 #
39 # This step is only required if you are using FORE ATM adapters.
40 # This assumes that the FORE microcode file pca200e.bin is in /etc.
41 # See the file fore-microcode.txt for further details.
42 #
43 /sbin/fore_dnld -d /etc
44
45 #
46 # Define network interfaces
47 #
48 /sbin/atm set netif hfa0 <netif_prefix> 1
49
50 #
51 # Configure physical interfaces
52 #
53 /sbin/atm attach hfa0 uni31
54
55 #
56 # Start ILMI daemon (optional)
57 #
58 /sbin/ilmid
59
60 #
61 # Set ATM address prefix
62 #
63 # Only need to set prefix if using UNI and not using ILMI daemon
64 #
65 #/sbin/atm set prefix hfa0 <nsap_prefix>
66
67 #
68 # Configure network interfaces
69 #
70 /sbin/ifconfig <netif> <ip_addr> netmask + up
71 /sbin/atm set arpserver <netif> <atm_address>
72
73 #
74 # Configure PVCs (optional)
75 #
76 #/sbin/atm add pvc hfa0 <vpi> <vci> aal5 null ip <netif> <ip_addr>
77
78 #
79 # Start SCSP daemons (optional)
80 #
81 # This step is only required if your host is configured as an ATMARP server
82 # and you wish to synchronize its cache with the cache(s) of some other
83 # server(s).  Scspd will look for its configuration file at /etc/scspd.conf.
84 #
85 #/usr/sbin/scspd
86 #/usr/sbin/atmarpd <netif> ...
87
88 exit 0
89