1
00:00:07,410 --> 00:00:09,690
- Let's talk about Automatic
Private IP Addressing,

2
00:00:09,690 --> 00:00:11,313
also know as APIPA.

3
00:00:14,670 --> 00:00:16,650
This is something that occurs when,

4
00:00:16,650 --> 00:00:19,260
usually when your computer
cannot get an IP address

5
00:00:19,260 --> 00:00:20,940
from a DHCP server.

6
00:00:20,940 --> 00:00:24,193
If you see the address 169.254.X.X,

7
00:00:29,460 --> 00:00:31,260
any other numbers after that,

8
00:00:31,260 --> 00:00:33,300
if you see 169.254,

9
00:00:33,300 --> 00:00:36,480
that means APIPA and
chances are that means

10
00:00:36,480 --> 00:00:39,120
that your computer's not
getting the correct IP address

11
00:00:39,120 --> 00:00:40,740
from a DHCP server.

12
00:00:40,740 --> 00:00:42,510
And APIPA has kicked in.

13
00:00:42,510 --> 00:00:44,760
This automatic private
IP addressing is built

14
00:00:44,760 --> 00:00:46,740
into the Windows system,

15
00:00:46,740 --> 00:00:48,270
and it originally was created

16
00:00:48,270 --> 00:00:51,630
so that Windows could be
networked together automatically

17
00:00:51,630 --> 00:00:53,430
without the use of a switch

18
00:00:53,430 --> 00:00:55,500
or a router or anything like that.

19
00:00:55,500 --> 00:00:57,810
But nowadays it kind
of just gets in the way

20
00:00:57,810 --> 00:01:00,150
of clients trying to obtain IP addresses,

21
00:01:00,150 --> 00:01:01,800
or it manifests itself

22
00:01:01,800 --> 00:01:04,920
when a client cannot obtain an IP address.

23
00:01:04,920 --> 00:01:07,440
And so what we're gonna
do is we're gonna show

24
00:01:07,440 --> 00:01:10,350
an APIPA address in Windows,
and then we'll show how

25
00:01:10,350 --> 00:01:14,250
to fix the problem using
the IP config command,

26
00:01:14,250 --> 00:01:17,273
and also show in the registry,
how to disable APIPA.

27
00:01:18,390 --> 00:01:20,250
So we talked about APIPA

28
00:01:20,250 --> 00:01:22,680
or automatic private IP addressing,

29
00:01:22,680 --> 00:01:24,900
and how it can be a problem sometimes

30
00:01:24,900 --> 00:01:26,460
and could get in the way

31
00:01:26,460 --> 00:01:29,760
of your computer obtaining
an IP address automatically.

32
00:01:29,760 --> 00:01:34,200
To be honest with you, I've had texts

33
00:01:34,200 --> 00:01:37,620
where APIPA has just driven them bonkers.

34
00:01:37,620 --> 00:01:41,250
But like any technical
problem, it is solvable.

35
00:01:41,250 --> 00:01:42,990
So first of all, what I
wanna do is I wanna look

36
00:01:42,990 --> 00:01:46,380
in the command line and see

37
00:01:46,380 --> 00:01:49,680
whether or not APIPA is actually running.

38
00:01:49,680 --> 00:01:53,850
Then we'll go into the registry
and show how to turn it off.

39
00:01:53,850 --> 00:01:56,640
So first we'll go to
the command prompt now.

40
00:01:56,640 --> 00:01:59,493
And we'll do one of those ipconfig/alls.

41
00:02:01,560 --> 00:02:03,900
And we'll see that we got lots and lots

42
00:02:03,900 --> 00:02:05,460
and lots of information.

43
00:02:05,460 --> 00:02:09,870
Well, we'll start with
the wireless lan adapter.

44
00:02:09,870 --> 00:02:11,460
And what we're looking for here

45
00:02:11,460 --> 00:02:16,110
is auto configuration
enabled, that is APIPA,

46
00:02:16,110 --> 00:02:19,080
and it says, yes, it's running.

47
00:02:19,080 --> 00:02:22,200
So we know that APIPA
is actually functioning.

48
00:02:22,200 --> 00:02:27,200
And so if you ever saw 169.254
here as the IP address,

49
00:02:27,990 --> 00:02:30,960
it's pretty safe to assume
that you could say, all right,

50
00:02:30,960 --> 00:02:33,090
this computer was trying
to obtain an IP address

51
00:02:33,090 --> 00:02:36,660
from a DHCP server, but it couldn't do so

52
00:02:36,660 --> 00:02:38,940
for one of a variety of reasons.

53
00:02:38,940 --> 00:02:41,310
The DHCP server could be down,

54
00:02:41,310 --> 00:02:44,220
the computer might not be
accessing the network properly,

55
00:02:44,220 --> 00:02:45,390
and so on.

56
00:02:45,390 --> 00:02:48,843
And at that point it gets the 169.254,

57
00:02:48,843 --> 00:02:51,150
and the APIPA is applied.

58
00:02:51,150 --> 00:02:54,750
If we look at the other
adapter, the ethernet adapter,

59
00:02:54,750 --> 00:02:56,190
we'll see here that yes,

60
00:02:56,190 --> 00:02:58,200
auto configuration is enabled.

61
00:02:58,200 --> 00:03:00,672
Even though we're not doing DHCP,

62
00:03:00,672 --> 00:03:03,210
auto configuration
enabled, that's separate.

63
00:03:03,210 --> 00:03:06,480
So APIPA is actually
still running on this.

64
00:03:06,480 --> 00:03:09,480
So we know it is actually
running and you may

65
00:03:09,480 --> 00:03:12,150
in some environments need to turn it off.

66
00:03:12,150 --> 00:03:14,430
To do that, we'll go to the registry.

67
00:03:14,430 --> 00:03:17,370
And the best way to get there
is to go to the run prompt,

68
00:03:17,370 --> 00:03:19,050
and type regedit.

69
00:03:19,050 --> 00:03:23,700
So we'll do our trusty
Windows and R combo,

70
00:03:23,700 --> 00:03:26,973
and we'll type regedit
here and press enter.

71
00:03:28,320 --> 00:03:29,880
And yes, I had already typed it.

72
00:03:29,880 --> 00:03:31,770
And here's the user account control.

73
00:03:31,770 --> 00:03:33,120
We'll just say yes for that.

74
00:03:33,120 --> 00:03:35,673
And that brings up the registry editor.

75
00:03:36,660 --> 00:03:39,300
So what we wanna do is we wanna locate

76
00:03:39,300 --> 00:03:44,300
where the APIPA configuration
is, where we can change that.

77
00:03:44,820 --> 00:03:46,500
And in here, we're gonna go

78
00:03:46,500 --> 00:03:48,183
to HKEY local machine,

79
00:03:49,260 --> 00:03:50,093
system,

80
00:03:50,970 --> 00:03:52,173
current control set,

81
00:03:53,100 --> 00:03:54,213
services,

82
00:03:55,560 --> 00:03:58,440
and we'll scroll all the
way down to T C P I P,

83
00:03:58,440 --> 00:04:03,440
because APIPA is part of
the TCPIP protocol suite.

84
00:04:04,200 --> 00:04:06,540
And that's here, open that up.

85
00:04:06,540 --> 00:04:11,190
Then we'll go to parameters,
and then interfaces.

86
00:04:11,190 --> 00:04:13,500
And finally, we need
to know which interface

87
00:04:13,500 --> 00:04:14,790
we wanna turn off.

88
00:04:14,790 --> 00:04:17,010
And you see, these are just associated

89
00:04:17,010 --> 00:04:18,720
with big hexadecimal numbers.

90
00:04:18,720 --> 00:04:20,760
These are security identifiers.

91
00:04:20,760 --> 00:04:22,800
Or they're globally unique identifiers.

92
00:04:22,800 --> 00:04:24,210
Not important for the A plus,

93
00:04:24,210 --> 00:04:27,060
but big hexadecimal numbers associated

94
00:04:27,060 --> 00:04:29,310
with each of our network adapters.

95
00:04:29,310 --> 00:04:32,850
And if we look at these, we
can find out which one we want.

96
00:04:32,850 --> 00:04:33,900
This is the guy I want.

97
00:04:33,900 --> 00:04:34,733
The second one.

98
00:04:34,733 --> 00:04:38,430
I know that because of the IP address.

99
00:04:38,430 --> 00:04:42,857
This is my ethernet network
adapter, 10.254.254.204.

100
00:04:44,490 --> 00:04:47,820
And it has the default
gateway, 10.254.254.1.

101
00:04:47,820 --> 00:04:52,380
All the networking
information in here is placed

102
00:04:52,380 --> 00:04:54,180
in here as values.

103
00:04:54,180 --> 00:04:56,190
And you can make modifications from here.

104
00:04:56,190 --> 00:04:59,970
This is really going into
depth with the system.

105
00:04:59,970 --> 00:05:02,190
Now, you gotta be careful
with the registry.

106
00:05:02,190 --> 00:05:05,100
If you're ever gonna make any
changes or add information,

107
00:05:05,100 --> 00:05:09,090
you should back up or
export the entire registry,

108
00:05:09,090 --> 00:05:12,150
or at least export the key or sub key

109
00:05:12,150 --> 00:05:13,920
that you're messing with.

110
00:05:13,920 --> 00:05:16,893
And to do that, you just go
to file and go to export.

111
00:05:18,000 --> 00:05:21,270
And then you select exactly
what you want to back up.

112
00:05:21,270 --> 00:05:22,103
A lot of times,

113
00:05:22,103 --> 00:05:24,720
I'll just back up the
entire registry database.

114
00:05:24,720 --> 00:05:26,010
This way you're safe.

115
00:05:26,010 --> 00:05:28,530
If a mistake happens,
you could always go back.

116
00:05:28,530 --> 00:05:30,750
So always have that backup or that export.

117
00:05:30,750 --> 00:05:32,340
But what we're gonna
do here is we're going

118
00:05:32,340 --> 00:05:37,170
to create a new value, a new DWORD.

119
00:05:37,170 --> 00:05:41,550
So we'll right-click,
select new, and then DWORD.

120
00:05:41,550 --> 00:05:44,880
And this is gonna be called
IP auto configuration enabled.

121
00:05:44,880 --> 00:05:46,593
And that's all one word.

122
00:05:48,810 --> 00:05:49,980
Make sure we spelled that right.

123
00:05:49,980 --> 00:05:53,880
Ipautoconfigurationenabled, press enter.

124
00:05:53,880 --> 00:05:56,010
That creates the entry.

125
00:05:56,010 --> 00:05:57,600
And now we have to assign a value.

126
00:05:57,600 --> 00:05:59,400
If we press enter for this,

127
00:05:59,400 --> 00:06:02,910
we'll see the actual DWORD configuration.

128
00:06:02,910 --> 00:06:05,490
Right now it's set to zero
and that's what we want.

129
00:06:05,490 --> 00:06:08,160
We really can just set it to zero for off,

130
00:06:08,160 --> 00:06:10,080
and one for on.

131
00:06:10,080 --> 00:06:13,530
If we set it to zero, then IP
auto configuration enabled,

132
00:06:13,530 --> 00:06:17,280
or APIPA will be turned off.

133
00:06:17,280 --> 00:06:18,780
So that's a little bit about APIPA,

134
00:06:18,780 --> 00:06:21,750
And now you know what it
is, why it might happen,

135
00:06:21,750 --> 00:06:25,650
and how you can see whether
it's running in Windows,

136
00:06:25,650 --> 00:06:28,290
and also how to turn it off if necessary.

137
00:06:28,290 --> 00:06:30,243
So that's about it for this sublesson.
