Saturday, January 7, 2012

ACL Standard & Extended

Let us create a Std access list and apply it to an interface

router1(config)#access-list 1 permit  [src_IP]
Now we will apply it to Interface 1 of the router1
router1(config)#interface eth 1
router1(config-if)#ip access-group 1 in
router1(config-if)#end

 Let us create an extended access list and apply it to an interface

router1(config)#access-list 101 permit tcp [src_IP wildcard mask] [src_Port optional] [dst_IP wildcard mask [dst Port optional]
Now we will apply it to Interface 1 of the router1
router1(config)#interface eth 1
router1(config-if)#ip access-group 101 in
router1(config-if)#end

No comments:

Post a Comment