Tuesday, 25 March 2014

Standard ACL

In this example i m trying  to block 30.0.0.0 network for my network which is HCL(10.0.0.0)

HCL(config)#ip access-list standard HCL
HCL(config-std-nacl)#deny 30.0.0.0 0.255.255.255
HCL(config-std-nacl)#permit any
HCL(config-std-nacl)#exit
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 30.0.0.0 0.255.255.255
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 30.0.0.0 0.255.255.255
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