cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4409
Views
0
Helpful
2
Replies

adding entries to access list

carl_townshend
Spotlight
Spotlight

hi all, can anyone give me the command to add entries in between access lists, i know you out a sequence nymber but where do you out it ?

2 Replies 2

glen.grant
VIP Alumni
VIP Alumni

Just do a "show access-lists and that will give you the syntax if the router supports it .I believe this function started with 12.2T train or 12.3 mainline IOS . I believe the number just goes in front of the permit or deny statement in a "named access list" in acl config mode .

Show access-list will show the sequence #s, if supported. Then, from the access-list sub-mode configure the sequence # followed the access control entry as shown below.

R3#show access-list 100

Extended IP access list 100

5 permit ip any 10.0.0.0 0.255.255.255

10 permit ip any 172.16.1.0 0.0.0.255

20 permit ip any 192.168.1.0 0.0.0.255

R3#config t

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#ip access-list extended 100

R3(config-ext-nacl)#2 deny ip any 10.1.1.0 0.0.0.255

R3(config-ext-nacl)#end

R3#show access-list 100

Extended IP access list 100

2 deny ip any 10.1.1.0 0.0.0.255

5 permit ip any 10.0.0.0 0.255.255.255

10 permit ip any 172.16.1.0 0.0.0.255

20 permit ip any 192.168.1.0 0.0.0.255

HTH

Sundar

Review Cisco Networking products for a $25 gift card