Question : Problem: cisco access list


I would like to limit access to a host, using access-list. so only a defined subnet can access this host, the rest gets denied.

Answer : Problem: cisco access list

Host IP: 1.1.1.1

Subnet: 2.2.2.0


access list 101 permit ip 2.2.2.0 0.0.0.255 host 1.1.1.1 <-- allows host on the 2.2.2.0 network access to 1.1.1.1
access list 101 deny ip any host 1.1.1.1 <-- denies everything else from accessing the host
access list 101 permit ip any any <-- permits all other traffic through the network


int f0/0 <----interface that connect to the host 1.1.1.1
access-group 101 in

This ACL will allow only traffic from the 2.2.2.0 network to access the host 1.1.1.1. All other traffic from any subnet will still be allowed to pass into the F0/0 interface.

Here is a good guide on the basics of ACLs
http://www.cisco.com/en/US/products/sw/secursw/ps1018/products_tech_note09186a00800a5b9a.shtml

and some common ACL configs
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_configuration_example09186a0080100548.shtml
Random Solutions  
 
programming4us programming4us