how to run router configuration scripts

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?
Who is Participating?
lrmooreConnect With a Mentor Commented:
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]
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
write mem
    <-- carraige return. Be sure to copy it, too...


gateguardAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.