Tuesday 25 March 2014

Standard ACL(host Blocking)

In this example i m trying to block 30.0.0.1 host from my network which is HCL(10.0.0.0)

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)#interface 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-std-nacl)#exit
HCL(config)#interface 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)#interface fastEthernet 0/0
HCL(config-if)#ip access-group 10 out

No comments:

Post a Comment