Sunday, 23 March 2014

Standard Access control list commands

Standard Access control list

IBM(config)#ip access-list standard hcl
IBM(config-std-nacl)#deny 30.0.0.0 0.255.255.255
IBM(config-std-nacl)#permit any
IBM(config)#inter fastEthernet 0/0
IBM(config-if)#ip access-group hcl out
.....................OR...........................
IBM(config)#ip access-list standard 10
IBM(config-std-nacl)#deny 30.0.0.0 0.255.255.255
IBM(config-std-nacl)#permit any
IBM(config)#inter fastEthernet 0/0
IBM(config-if)#ip access-group 10 out
.....................OR...........................
IBM(config)#access-list 10 deny 30.0.0.0 0.255.255.25
IBM(config)#access-list 10 permit any
IBM(config)#inter fastEthernet 0/0
IBM(config-if)#ip access-group 10 out



Block a host through standard ACL

hcl(config)#ip access-list standard hcl
hcl(config-std-nacl)#deny host 30.0.0.1
hcl(config-std-nacl)#permit any
hcl(config)#inter fastEthernet 0/0
hcl(config-if)#ip access-group hcl out
.....................OR...........................
hcl(config)#ip access-list standard 10
hcl(config-std-nacl)#deny host 30.0.0.1 
hcl(config-std-nacl)#permit any
hcl(config)#inter fastEthernet 0/0
hcl(config-if)#ip access-group 10 out
.....................OR...........................
hcl(config)#ACcess-list 10 deny host 30.0.0.1
hcl(config)#access-list 10 permit any
hcl(config)#inter fastEthernet 0/0
hcl(config-if)#ip access-group 10 out

No comments:

Post a Comment