?
Solved

how to run router configuration scripts

Posted on 2003-11-23
2
Medium Priority
?
942 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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.

840 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