28.06.2014 Views

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 1—ACL numbering.<br />

1-99 IP standard<br />

100-199 IP extended<br />

200-299 Protocol type-code<br />

300-399 DECnet<br />

400-499 XNS standard<br />

500-599 XNS extended<br />

600-601 Appletalk<br />

700-799 48-bit MAC address<br />

800-899 IPX standard<br />

900-999 IPX extended<br />

1000-1099 IPX SAP<br />

1100-1199 Extended 48-bit MAC address<br />

1200-1299 IPX summary address<br />

Standard ACL’s<br />

A standard ACL controls access using an IP address or range of addresses. The best way<br />

to figure these out is to dig right in and learn <strong>by</strong> doing! Let’s write a standard ACL to for<br />

hosts on the sales network to be denied access to the HR server, but allow them access to<br />

the marketing network and the WWW.<br />

server<br />

HR<br />

192.168.10.15/24 192.168.10.0/24<br />

e0/0<br />

e0/1 WWW<br />

s0/0<br />

EGR e0/2<br />

192.168.30.0/24<br />

Sales<br />

192.168.40.0/24<br />

Now lets create our ACL:<br />

Router(config)#access-list 1 deny 192.168.40.0 0.0.0.255<br />

Router(config)#access-list 1 permit ip any<br />

Here we created our access-list and gave it the number 1 (tells us it is a standard<br />

ACL…see table 1). Then we put in our source IP’s (in this case a network) and the<br />

wildcard mask. In this mask we wanted to exactly match the network and subnet portion<br />

and didn’t really care about the host portions. Therefore our mask became 0.0.0.255<br />

(nnnnnnnn.nnnnnnnn.ssssssss.hhhhhhhh).<br />

338

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!