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.

(VLSM/CIDR). OSPF on a wider scale is better left to upper-level courses. You are<br />

only getting a brief overview here.<br />

Quick overview: Wildcard Masks<br />

A while back you learned about subnet masks. We use wildcard masks to instruct our<br />

devices to “only pay attention” to certain information. The easiest way I know to explain<br />

how to set up a wildcard mask is: a wildcard mask is usually the exact opposite of a<br />

subnet mask (in terms of binary one’s and zero’s). One last note: a wildcard mask, unlike<br />

a subnet mask, does not have to contain contiguous one’s…more on this later). Let’s<br />

look at an example:<br />

If we had a network 172.16.1.0/24 and wanted to use a routing protocol:<br />

• With RIP, IGRP, EIGRP, BGP (with subnet mask):<br />

o network 172.16.1.0 255.255.255.0<br />

o let’s see that subnet mask in binary:<br />

• 11111111.11111111. 11111111.00000000<br />

• With OSPF (with wildcard mask):<br />

o network 172.16.1.0 0.0.0.255<br />

o let’s see that wildcard mask in binary:<br />

• 00000000.00000000. 00000000.11111111<br />

Step-By-Step Instructions:<br />

1. Set up and cable the lab as shown. Do not use any routing protocol. Notice<br />

how our addresses extend beyond our address class boundary. OSPF will pass<br />

subnet information.<br />

2. Now let’s add in our OSPF routing protocol. We use the number 0 because<br />

OSPF requires at least one “area” be numbered 0. Yes…the number “1” is an<br />

autonomous system number too.<br />

wash(config)#router ospf 1<br />

wash(config-router)#network 172.16.1.0 0.0.0.255 area 0<br />

wash(config-router)#network 172.16.2.0 0.0.0.255 area 0<br />

leung(config)#router ospf 1<br />

leung(config-router)#network 172.16.2.0 0.0.0.255 area 0<br />

leung(config-router)#network 172.16.3.0 0.0.0.255 area 0<br />

3. We can use some show commands too:<br />

wash#sh ip route<br />

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP<br />

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br />

313

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

Saved successfully!

Ooh no, something went wrong!