Reconfiguring Your System
159
Running Script Files
The
do
command is a powerful tool to configure multiple users,
protocols, or other functionality by running a script file containing CLI
commands. To use this command, create a file containing the CLI
commands you want to implement, TFTP the file to the FLASH ROM, and
type
do
<filename>
. See the example below covering many system
functions. Some commands are commented out or abbreviated.
; RAS 1500 CONFIGURATION FILE;
; FACILITIES LOGLEVEL;
set facility ip loglevel verbose
set facility ppp loglevel verbose
set facility user loglevel verbose
set facility call loglevel verbose
;
; SYSTEM INFO;
set system name “marauder”
set system contact “Henry Stimson”
set system location “3Com Lab”
;
; SETTING THE LOCAL COMMAND PROMPT;
;set command prompt “RAS 1500”
;
; SETTING THE SYSTEM COMMAND HISTORY;
;set command history 100
;
; SNMP COMMUNITIES;
add snmp community sqatest a 0.0.0.0 a rw
add snmp community bearcat a 0.0.0.0 a rw
add snmp community public a 0.0.0.0 a ro
;
; IP NETWORKS;
add ip network “ipnet-157.172.248.0” address 157.172.248.38/c
rm0/eth:1
set ip network “ipnet-157.172.248.0” routing_protocol ripv1
;set ip network “ipnet-157.172.248.0” routing_protocol ripv2
;set ip network “ipnet-157.172.248.0” routing_protocol none
;set ip network “ipnet-157.172.248.0” rip_policies ripv1_rec
ripv1_receive ripv1
;
; ADDING STATIC IP ROUTES;
;add ip route 204.249.182.0 gateway 157.172.228.1 metric 1
;
; DNS ADD;
add dns host louvre address 157.172.248.54
Summary of Contents for REMOTE ACCESS SYSTEM 1500
Page 14: ......
Page 40: ......
Page 58: ......
Page 120: ......
Page 130: ......
Page 158: ......
Page 178: ......
Page 202: ......
Page 266: ......
Page 286: ......
Page 292: ......
Page 297: ...INDEX 295 V 90 151 W Windows 95 Dial Up Networking 89 World Wide Web WWW 285 X X 75 152 ...
Page 298: ...296 INDEX ...