WEBVTT

0:00:08.380000 --> 0:00:13.300000
 Okay, so as the Internet Assigned Numbers
 Authority got involved here

0:00:13.300000 --> 0:00:18.600000
 and they started organizing and controlling
 these IP networks and IP addresses

0:00:18.600000 --> 0:00:23.620000
 and dividing them into classes like A,
 B and C and then D and E but we're

0:00:23.620000 --> 0:00:26.520000
 not really going to focus
 on D and E addresses.

0:00:26.520000 --> 0:00:30.140000
 They said, well, here's
 what we're going to do.

0:00:30.140000 --> 0:00:36.200000
 The majority of these IP networks like
 the 146 network or the 99 network,

0:00:36.200000 --> 0:00:40.340000
 we will make those as what we call
 public networks, which is a network

0:00:40.340000 --> 0:00:45.400000
 that somebody can rent or lease and then
 that network will be unique just

0:00:45.400000 --> 0:00:47.160000
 to their organization.

0:00:47.160000 --> 0:00:50.100000
 And then all the service providers throughout
 the entire world will know

0:00:50.100000 --> 0:00:57.280000
 that that network sits over here in this
 company, so that's called a public

0:00:57.280000 --> 0:01:01.180000
 IP address. It's something that's
 like leased to a corporation.

0:01:01.180000 --> 0:01:05.080000
 But then the Internet Assigned Numbers
 Authority set aside a few networks

0:01:05.080000 --> 0:01:09.640000
 as private or unregistered
 networks.

0:01:09.640000 --> 0:01:15.140000
 These are networks that nobody controls,
 networks that anybody can use

0:01:15.140000 --> 0:01:20.060000
 but you can only use them
 within your company.

0:01:20.060000 --> 0:01:24.260000
 In other words, it's a network that
 is not allowed to send packets into

0:01:24.260000 --> 0:01:29.560000
 or receive packets from the
 global public Internet.

0:01:29.560000 --> 0:01:34.500000
 Because if I sent a packet into the Internet
 going to a private destination,

0:01:34.500000 --> 0:01:37.900000
 there's no way that service providers
 and routers within the Internet

0:01:37.900000 --> 0:01:41.980000
 would know how to get that packet
 to where it needs to go.

0:01:41.980000 --> 0:01:47.400000
 Because that private address could be
 used by thousands or tens of thousands

0:01:47.400000 --> 0:01:51.160000
 of companies all using
 the exact same address.

0:01:51.160000 --> 0:01:54.500000
 So private addresses are just
 used within your company.

0:01:54.500000 --> 0:02:00.820000
 For example, let's say that I had within
 my enterprise a section of my

0:02:00.820000 --> 0:02:04.800000
 network over here that had a whole bunch
 of private file servers on it.

0:02:04.800000 --> 0:02:12.320000
 So I want all the employees within my company
 to reach this private broadcast

0:02:12.320000 --> 0:02:14.960000
 domain over here with these
 private file servers.

0:02:14.960000 --> 0:02:19.600000
 But I never will ever need anyone from
 the outside world to get to those

0:02:19.600000 --> 0:02:23.220000
 servers. They're only private
 for my own internal use.

0:02:23.220000 --> 0:02:27.340000
 Well, the broadcast domain, the VLAN,
 the Ethernet segment where those

0:02:27.340000 --> 0:02:31.760000
 file servers live, I could address
 that with a private network number.

0:02:31.760000 --> 0:02:36.620000
 And as long as the routers within my
 company know how to reach it, my

0:02:36.620000 --> 0:02:40.340000
 own internal employees could get to
 those servers, but the rest of the

0:02:40.340000 --> 0:02:42.560000
 world, it's invisible to them.

0:02:42.560000 --> 0:02:47.160000
 That private network is not advertised
 out to the rest of the world.

0:02:47.160000 --> 0:02:53.360000
 So if you're ever curious,
 you can Google RFC 1918.

0:02:53.360000 --> 0:02:57.500000
 That gives more gory detail about
 these private networks.

0:02:57.500000 --> 0:03:00.000000
 And these are the range
 of addresses.

0:03:00.000000 --> 0:03:02.960000
 And for Cisco certifications, this is
 definitely something you're going

0:03:02.960000 --> 0:03:04.540000
 to want to have memorized.

0:03:04.540000 --> 0:03:09.080000
 So each of our classes, class A, B,
 and C, some of the address space was

0:03:09.080000 --> 0:03:11.340000
 reserved for these
 private networks.

0:03:11.340000 --> 0:03:14.520000
 You can see here the class A space,
 anything beginning with the number

0:03:14.520000 --> 0:03:16.920000
 10 is a private network.

0:03:16.920000 --> 0:03:22.480000
 In class B, anything beginning
 with 172.16 through 172.31.

0:03:22.480000 --> 0:03:26.800000
 Remember, like we saw with the whiteboard,
 with that number 172 in class

0:03:26.800000 --> 0:03:32.700000
 B, there are 256 networks available
 that start with 172.

0:03:32.700000 --> 0:03:36.700000
 There's 172.0 up to 172.255.

0:03:36.700000 --> 0:03:40.780000
 And we see that a handful of them here
 in the middle, not 16 through 31,

0:03:40.780000 --> 0:03:43.080000
 were reserved for private usage.

0:03:43.080000 --> 0:03:53.520000
 And then the class C space, 192.168.anything
 is reserved for private usage.

0:03:53.520000 --> 0:03:58.400000
 Now what's kind of interesting here
 is if I show you, actually not this,

0:03:58.400000 --> 0:04:07.600000
 if I show you my DOS prompt for a moment,
 and I look at what IP address

0:04:07.600000 --> 0:04:15.080000
 I have right now, you'll see I've got
 nothing but private networks on

0:04:15.080000 --> 0:04:18.240000
 here. 192, that's private.

0:04:18.240000 --> 0:04:24.100000
 And if I look at my Wi-Fi adapter,
 that's 10, that's private.

0:04:24.100000 --> 0:04:29.060000
 So you might be wondering, well, wait
 a second, how can my laptop reach

0:04:29.060000 --> 0:04:34.180000
 the outside world at all if the only
 IP addresses it has are private IP

0:04:34.180000 --> 0:04:37.600000
 addresses? Well, the reason it can reach
 the outside world is typically

0:04:37.600000 --> 0:04:41.740000
 in a network that utilizes
 private addresses.

0:04:41.740000 --> 0:04:47.340000
 You'll have at least one device, typically
 a router, that has a public

0:04:47.340000 --> 0:04:48.680000
 IP address on it.

0:04:48.680000 --> 0:04:52.480000
 It has a network on it that was bought
 and paid for that was leased.

0:04:52.480000 --> 0:04:55.160000
 And that router is actually
 doing translation.

0:04:55.160000 --> 0:04:59.440000
 This is called network address translation,
 where when my laptop sends

0:04:59.440000 --> 0:05:05.800000
 a packet to the internet, like CNN
.com or Google.com or whatever, when

0:05:05.800000 --> 0:05:10.260000
 that packet reaches my router here within
 my company, the source address

0:05:10.260000 --> 0:05:12.260000
 of that packet is my
 private address.

0:05:12.260000 --> 0:05:16.640000
 In this case, you know,
 10.something, 10.7.1.61.

0:05:16.640000 --> 0:05:21.680000
 When it reaches the router, the router
 says, okay, clearly, I cannot forward

0:05:21.680000 --> 0:05:25.600000
 that packet into the internet as it
 stands, because it's got a private

0:05:25.600000 --> 0:05:30.080000
 source address. So the router actually
 strips off that source address

0:05:30.080000 --> 0:05:33.540000
 and replaces it with
 a public IP address.

0:05:33.540000 --> 0:05:38.520000
 So when it leaves the router, it looks
 like it came from a public network.

0:05:38.520000 --> 0:05:40.480000
 And that's called network
 address translation.

0:05:40.480000 --> 0:05:45.240000
 That is a feature that you do
 need to know for the CCNA.

0:05:45.240000 --> 0:05:48.660000
 And public addresses are pretty
 much everything else.

0:05:48.660000 --> 0:05:52.140000
 So in the class A, B, and C space, anything
 that wasn't private that we

0:05:52.140000 --> 0:05:56.280000
 just saw, falls into
 the public space.

0:05:56.280000 --> 0:05:58.880000
 Not entirely true.

0:05:58.880000 --> 0:06:03.920000
 We know that the 127 network, that's
 not public or private, right?

0:06:03.920000 --> 0:06:07.020000
 The 127 we said that was reserved
 for loopback testing.

0:06:07.020000 --> 0:06:10.100000
 There's a handful of other networks
 as well that sort of have special

0:06:10.100000 --> 0:06:13.520000
 meanings. For example, if I go back
 to my DOS prompt right here for a

0:06:13.520000 --> 0:06:21.600000
 second, look at my
 Ethernet adapter.

0:06:21.600000 --> 0:06:25.820000
 My Ethernet adapter has a network
 beginning with 169.

0:06:25.820000 --> 0:06:28.780000
 Now you might look at that and say, okay,
 well, we just learned that let's

0:06:28.780000 --> 0:06:33.400000
 see here in binary, the number
 169 begins with 10.

0:06:33.400000 --> 0:06:37.340000
 The 128 bit is on,
 the 64 bit is off.

0:06:37.340000 --> 0:06:39.920000
 So that is a class B network.

0:06:39.920000 --> 0:06:41.000000
 Well, that is true.

0:06:41.000000 --> 0:06:42.900000
 It falls into the class B space.

0:06:42.900000 --> 0:06:46.180000
 But that is neither a private
 nor a public network.

0:06:46.180000 --> 0:06:51.420000
 That is a special network that's called
 an automatically provisioned IP

0:06:51.420000 --> 0:06:58.300000
 address. Basically on systems that utilize
 DHCP, the dynamic host configuration

0:06:58.300000 --> 0:07:01.900000
 protocol. If a system like pretty much
 everything these days, laptops,

0:07:01.900000 --> 0:07:09.500000
 PCs, tablets, smartphones, if something
 utilizes DHCP to dynamically discover

0:07:09.500000 --> 0:07:14.980000
 what IP address it should
 use, sometimes DHCP fails.

0:07:14.980000 --> 0:07:19.060000
 Sometimes, for example, like in this case,
 my laptop says, okay, I'm connected

0:07:19.060000 --> 0:07:20.520000
 to a cable, which it is.

0:07:20.520000 --> 0:07:23.100000
 My laptop has an Ethernet
 cable plugged in.

0:07:23.100000 --> 0:07:28.200000
 And it attempted to dynamically discover
 its IPv4 network via DHCP and

0:07:28.200000 --> 0:07:34.080000
 it failed. And when DHCP fails, it automatically
 provisioned itself with

0:07:34.080000 --> 0:07:38.360000
 this. 169.254.something.

0:07:38.360000 --> 0:07:42.720000
 So usually when you see this, anything
 beginning with 169, that's actually

0:07:42.720000 --> 0:07:44.920000
 bad. You don't want to see that.

0:07:44.920000 --> 0:07:50.160000
 That means that DHCP failed and you
 were not able to get yourself a real

0:07:50.160000 --> 0:07:53.300000
 usable IP address.

0:07:53.300000 --> 0:07:57.700000
 But it had to put something in this
 32 bit number field, so it shows the

0:07:57.700000 --> 0:08:02.940000
 special reserve number of 169.254, which
 is called an automatically provisioned

0:08:02.940000 --> 0:08:06.340000
 IP address. Not usually
 a good thing.

0:08:06.340000 --> 0:08:07.360000
 You don't really want to see that.


