Solved

how to run router configuration scripts

Posted on 2003-11-23
2
921 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 300 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

729 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