Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco access-list help

Status
Not open for further replies.

rasoft

MIS
Jul 1, 2005
6
GB
Hi,

I want to add a new entry to an access-list but it puts it at the bottom.

I can create a new config file and re-run from hyper terminal and it adds it correctly from my new config file (send text file).

If i telnet to the router since i dont have serial terminal access how can I replay the config file? i think someone said you could run it from telnet but I dont know how.

is there an easier way to amend the access-lists?

thanks
 
resolved now.

Config t from telnet, then paste in config changes.

It was my telnet client causing issues.

Would be interest in anyway to amend access list and order without reapplyig the whole lot back.
 
In cisco, it is true that when you type something new in the access list it will come at the bottom. The only thing that you can do is to copy the access list in a notepad and make changes there in the notepad. After making the changes you can always paste the access list back to the router. Of course you will have to conf t in order to paste the modified access list.
 
In newer images you can have sequences in ACLs like this:

!
ip access-list standard STDACL
10 permit host a.b.c.d
20 deny host e.f.g.h
30 permit any
!
ip access-list extended EXTACL
10 permit ip host a.b.c.d any
20 deny tcp host e.f.g.h any eq www
30 permit ip any any
!

So if you want to add something in between you just need to assign a sequence number in between like this:

!
ip access-list extended EXTACL
15 deny ip host w.x.y.z any
!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top