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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Objective:<br />

To learn how to create wildcard masks for use with Access Control Lists.<br />

Paper Lab: Wildcard Masks<br />

Background:<br />

People confuse wildcard masks with subnet masks all the time. They are similar after all<br />

because they both are masks but they really are different. A wildcard mask helps an<br />

access control list determine which ip addresses to implement the access control list<br />

commands upon. A nice, neat, simple rule: zero’s denote “exact” match bits…think of<br />

that little razor knife: an “exact-o” knife. Let’s dig in to an example:<br />

1. Write a wildcard mask for a host ip address of 172.16.2.34:<br />

Can you see what they are asking? They want an exact match for a host ip<br />

address here. Let’s convert the ip address to binary:<br />

10101100.00010000.00000010.00100010<br />

Since they want an exact match for all bits then the wildcard mask is filled in with<br />

zero’s (ok…so the bits conversion wasn’t needed but give me a break…you will<br />

see why we added this step in next…)<br />

00000000.00000000.00000000.00000000<br />

Therefore, when we convert this wildcard mask back to decimal we get a wildcard<br />

mask of 0.0.0.0 for our exact host match.<br />

2. Write a wildcard mask for a entire subnet containing the ip address of<br />

172.16.2.34/27<br />

Can you see what they are asking? They want an exact match for the subnet<br />

containing the host ip address here. Let’s convert the ip address to binary:<br />

10101100.00010000.00000010.00100010<br />

Then let’s figure out the network, subnet, and host portions:<br />

10101100.00010000.00000010.00100010<br />

network.network.network.subnet host<br />

Since they want an exact match for all network plus subnet bits then the wildcard<br />

mask is filled in with zero’s in the network and subnet portions and one’s in the<br />

host portion:<br />

00000000.00000000.00000000.00011111<br />

335

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

Saved successfully!

Ooh no, something went wrong!