[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to run router configuration scripts

Posted on 2003-11-23
2
Medium Priority
?
927 Views
Last Modified: 2013-11-29
I've been making changes to my router one line at a time.  I type up the changes first in a text file and then use copy and "paste to host" (in hyperterminal) line-by-line.

Can I just cut & paste-to-host the whole block of lines?

I guess I have to add the word "exit" for those places where I'm dropping out of config-int mode to just config mode.  Right?
0
Comment
Question by:gateguard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 79

Accepted Solution

by:
lrmoore earned 1200 total points
ID: 9806519
Yes, you can simply cut/paste complete blocks of lines.
Use 'exit' to go from interface config back to global config..
Use 'end' at the end.

Here's an example to change an access-list that scripts out everything

router>[paste to host]
enable
 password
config t
 interface serial 0/0.1
  no ip access-group 101 in
!
no access-list 101
access-list 101 permit tcp any any established
access-list 101 permit udp any eq 53 any
access-list 101 deny ip any any log
!
interface serial 0/0.1
 ip access-group 101 in
!
end
!
write mem
    <-- carraige return. Be sure to copy it, too...

Done!


0
 

Author Comment

by:gateguard
ID: 9807975
thanks!
0

Featured Post

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Make the most of your online learning experience.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question