Here you have a few examples of how to interact with extended access lists:
To create a new extended acl:
router#conf tDisplay the current rules:
router(config)#ip access-list extended 199
router(config)#10 permit tcp any any
router(config)#20 permit udp any any
router(config)#30 deny ip any any
router#show access-list 199Add a new rule:
Extended IP access list 199
10 permit tcp any any
20 permit udp any any
30 deny ip any any
router#conf tRearrange the rules numbering:
router(config)#ip access-list extended 199
router(config-ext-nacl)#21 permit gre any any
router(config-ext-nacl)#exit
router(config)#exit
router#show access-list 199
Extended IP access list 199
10 permit tcp any any
20 permit udp any any
21 permit gre any any
30 deny ip any any
router#ip access-list resequence 199 10 10
router#show access-list 199
Extended IP access list 199
10 permit tcp any any
20 permit udp any any
30 permit gre any any
40 deny ip any any
No comments:
Post a Comment