cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
718
Views
5
Helpful
4
Replies

Adding to an ACL

burleyman
Level 8
Level 8

This is already configured

ip access-list standard INCARRIER
permit 10.10.4.0 0.0.0.255
permit 10.10.204.0 0.0.0.255
permit 10.10.33.0 0.0.0.255

and I want to add this

permit 10.10.7.0 0.0.0.255

and I want it to look like this

ip access-list standard INCARRIER
permit 10.10.4.0 0.0.0.255
permit 10.10.204.0 0.0.0.255
permit 10.10.33.0 0.0.0.255
permit 10.10.7.0 0.0.0.255


would I do this


2821#config t
Enter configuration commands, one per line.  End with CNTL/Z.
2821(config)#ip access-list standard INCARRIER
2821(config-std-nacl)#permit 10.10.7.0 0.0.0.255

or would I need to do this


2821#config t
Enter configuration commands, one per line.  End with CNTL/Z.
2821(config)#ip access-list standard INCARRIER
2821(config-std-nacl)#permit 10.10.4.0 0.0.0.255
2821(config-std-nacl)#permit 10.10.204.0 0.0.0.255
2821(config-std-nacl)#permit 10.10.33.0 0.0.0.255
2821(config-std-nacl)#permit 10.10.7.0 0.0.0.255

Thanks,

Mike

1 Accepted Solution

Accepted Solutions

Collin Clark
VIP Alumni
VIP Alumni

Mike-

You can add just the new network, no need to add them all again.


2821#config t
Enter configuration commands, one per line.  End with CNTL/Z.
2821(config)#ip access-list standard INCARRIER
2821(config-std-nacl)#permit 10.10.7.0 0.0.0.255

Hope it helps.

View solution in original post

4 Replies 4

Collin Clark
VIP Alumni
VIP Alumni

Mike-

You can add just the new network, no need to add them all again.


2821#config t
Enter configuration commands, one per line.  End with CNTL/Z.
2821(config)#ip access-list standard INCARRIER
2821(config-std-nacl)#permit 10.10.7.0 0.0.0.255

Hope it helps.

Thanks, that is what I thought but wanted to cover my bases.

One more based on that......If I wanted to add in the middle I would need to do this.....correct?

2821#config t
Enter configuration commands, one per line.  End with CNTL/Z.
2821(config)#ip access-list standard INCARRIER
2821(config-std-nacl)#permit 10.10.4.0 0.0.0.255
2821(config-std-nacl)#permit 10.10.204.0 0.0.0.255
2821(config-std-nacl)#permit 10.10.7.0 0.0.0.255

and no need add the last permit


and the result would be

ip access-list standard INPAETEC
permit 10.10.4.0 0.0.0.255
permit 10.10.204.0 0.0.0.255
permit 10.10.7.0 0.0.0.255
permit 10.10.33.0 0.0.0.255

Mike

Mike-

Those dang standard ACLs don't have sequence numbers. The order you put them makes no difference in how they show up in the config. If you need to arrange them in a specific order you'll have to use extended ACLs.

Thanks for your help.

Mike

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card