Solved

how to run router configuration scripts

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern 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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now