Jump to content

Recommended Posts

Posted

Hi All,

 

I’d like to know what is the best practice of editing and managing CISCO switch and router access control list (ACL)?

 

I’m now connecting using the blue console cable into the device and then use putty to connect to the console COM1.

 

1. I enable logging then “show run”

2. Keeps pressing the keyboard to go ahead the “- - more- - “ delimiter

3. Open Notepad then edit the log to remove the “- - more - - “ keyword

4. Make necessary changes

5. Quickly Select 15 lines then Copy paste into the conf-t prompt (to reduce the input buffer limit and avoid timeout)

6. Make sure that there is no spacing or copy paste error in the step above then “write mem”.

 

I wonder if there is a smarter or safest way in doing this to manage large scale network because copy pasting hundreds of line and verifying it one by one through putty and pressing the keyboard is too cumbersome.

 

Any kind of help would be greatly appreciated.

 

Thanks,

AWT

Posted
With regard to the buffer overrun I know that I used to use either terminal program built in with XP/2003 because you could set a delay between lines in the options, this way you could paste in the whole lot at once and the program would add whatever delay you wanted between each line meaning that there were no overruns.
  • Thanks 1
Posted (edited)

The command you need to use to disable the "more" prompt is terminal length 0. This will display the entire config all at once. I did this one of our Cisco switches recently and used the following steps to backup its configuration via PuTTY.

 

  1. Enable the "All session output" logging option in PuTTY, connect to the router/switch and login as normal.
  2. Next, enter the commands below and press Enter after each one.
    enable
    terminal length 0
    show running-config
    exit


 

You should now have a text file which contains the configuration. You will have to edit it slightly though (to remove the PuTTY commands you typed above).

 

Edit. You can also backup the config via TFTP or FTP too...

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml

Edited by Arthur
  • Thanks 1
Posted

Arthur, thanks for the reply and suggestion, I'm using IOS 12 and 12.4, based on your suggestion it does make sense,

so i can just

 

1. export the config.

2. make necessary changes

3. import the config

4. in the conf-t apply the rule using write mem

5. test the connectivity.

 

please correct me if I'm wrong but that does make sense and easy after all by using filezilla (for tFTP).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...