08-04-2010 08:46 AM - edited 03-04-2019 09:18 AM
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
Solved! Go to Solution.
08-04-2010 08:52 AM
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.
08-04-2010 08:52 AM
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.
08-04-2010 09:06 AM
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
08-04-2010 09:12 AM
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.
08-04-2010 09:16 AM
Thanks for your help.
Mike
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide