00:00:00
00:00:02
IP version 4, which you will
commonly see written as IPv4,
00:00:06
is the primary protocol
for almost everything
00:00:08
that we do on today's networks.
00:00:10
If you're communicating
between two different devices,
00:00:12
IP addresses will be used
on both of those devices.
00:00:16
There's a newer version of IP
called IP version 6 or IPv6.
00:00:21
And you'll find that most
major operating systems now
00:00:24
support both IPv4 and
IPv6 on those systems.
00:00:29
These are the IP
addresses on my device.
00:00:32
I have both IPv4 addresses
and IPv6 addresses
00:00:35
that have been assigned
to my computer.
00:00:38
This means that I can
communicate to any other device
00:00:40
on the internet, either
using IPv4 addresses or IPv6.
00:00:46
IPv4 addresses are
four separate numbers,
00:00:49
all separated with a period.
00:00:51
So an example of an IPv4
address would be 192.168.1.131.
00:00:58
We can also view this
in a binary form.
00:01:00
You can see there are 32
total bits in an IPv4 address.
00:01:04
And they're separated into
these four different blocks.
00:01:07
This is the binary
representation of 192.
00:01:10
This is the binary
representation of 168,
00:01:13
and so on.
00:01:14
You'll sometimes hear these
referred to as 8-bit segments,
00:01:18
one byte, or one octet.
00:01:21
And having four
of those together
00:01:22
is 32 total bits or 4
bytes of an IPv4 address.
00:01:27
If you were to convert this
binary value back to decimal,
00:01:31
you would see that
11000000 is 192.
00:01:36
This also means if we
have eight of these bits
00:01:39
and they're all set to 1, the
maximum value would be 255.
00:01:44
So any of these
groups or octets can
00:01:46
have a maximum value of 255.
00:01:50
We quickly realized with the
popularity of the internet
00:01:53
that we were going to
exceed the capacity of what
00:01:55
IPv4 addresses could provide.
00:01:57
So we created IPv6 which
was a new form of IP that
00:02:02
had a much larger address.
00:02:04
You can see that an IPv6
address is 128 bits in length.
00:02:10
This means that you can
have a very large number
00:02:13
of total addresses,
which ultimately means
00:02:16
that the $6.8 billion
people on Earth
00:02:18
could have a very large
number of addresses
00:02:21
for each individual person.
00:02:23
This gives us enough addresses
to assign an IPv6 address
00:02:27
to almost anything
that we might use.
00:02:30
You can see that IPv6
addresses are separated
00:02:33
into eight different groups.
00:02:35
And each one of those
groups consists of 16 bits.
00:02:38
This is also two
bytes or two octets.
00:02:41
Instead of displaying these
addresses as binary or decimal,
00:02:44
you can see that in IPv6,
we choose to address
00:02:47
these in hexadecimal format.
00:02:50
So a common IPv6 address might
be FE80 colon colon 5D18 colon
00:02:56
652 colon CFFD colon 8F52.
00:03:01
As you can tell, it's
a much larger address.
00:03:03
And in some ways, it's a
much more difficult address
00:03:06
to try to memorize.
00:03:07
For that reason,
your DNS is going
00:03:09
to be a very important tool
to use on your network,
00:03:13
because you'll very often be
referring to these servers
00:03:15
by their name instead of
their very long and relatively
00:03:18
complicated IPv6 address.
00:03:21
We also tend to see
IPv6 addresses assigned
00:03:24
with a 64-bit subnet mask.
00:03:26
That means that the first 64
bits are the network address,
00:03:30
and the last 64 bits
are the host address.
00:03:34
If you're assigning an
IP address to a device,
00:03:37
there are a number of important
configuration parameters
00:03:40
you need to add.
00:03:41
The first would obviously
be the IP address itself.
00:03:44
So for IPv4, you might assign it
an IP address of 192.168.1.165.
00:03:51
Every device on your network
needs a unique IP address.
00:03:54
So you have to
make sure there are
00:03:56
no duplicates when you
start assigning these IP
00:03:58
addresses to devices.
00:04:00
Along with the IP
address, we also
00:04:02
need to assign a subnet mask.
00:04:04
This will normally be assigned
by the network administrator.
00:04:07
And it's usually a
format like this one,
00:04:09
such as, 255.255.255.0.
00:04:13
Subnet masks are used
by the local device
00:04:16
to determine what subnet
it happens to be a part of.
00:04:19
So it uses this to mask out
the IP address, leaving only
00:04:23
the host address at the end.
00:04:25
You'll often be provided both of
these values at the same time.
00:04:29
So if you're assigning
an IP to a device,
00:04:31
someone may tell you
to assign 192.168.1.165
00:04:35
with a subnet mask
of 255.255.255.0.
00:04:40
If you only have one
of these parameters,
00:04:42
you won't be able to complete
the IP address assignment.
00:04:45
Both of these parameters
are used in conjunction
00:04:47
with each other.
00:04:48
And you have to have both
of them to assign an IP.
00:04:51
If the device also needs
to communicate outside
00:04:54
of your local subnet,
and most devices do,
00:04:57
you'll need to also
assign a default gateway.
00:05:00
This is the IP
address of a router
00:05:02
that allows you to communicate
outside of your local subnet.
00:05:05
So the default gateway in
this particular example
00:05:08
is 192.168.1.1.
00:05:11
In most cases, this
is the bare minimum
00:05:13
of configurations you would need
to assign to a local device.
00:05:17
So you would need an IP address,
a subnet mask, and a default
00:05:20
gateway.
00:05:22
As I mentioned earlier, the
domain name system server
00:05:25
or DNS server is also
an important component.
00:05:28
We don't commonly type an
IP address in the browser
00:05:31
that we're using.
00:05:31
Instead we type
www.professormesser.com
00:05:35
or www.google.com.
00:05:37
It would be very
complicated if we
00:05:39
had to remember all of these
IP addresses and type them
00:05:42
in manually every time we wanted
to visit one of these websites.
00:05:45
Instead, we have a service
that does this for us.
00:05:48
It converts between these
names to an IP address.
00:05:52
This is because the routers and
other devices on our network
00:05:55
don't know what
these names mean,
00:05:57
but they do know where to send
your traffic if there's an IP
00:06:00
address associated with it.
00:06:02
So we need something
that can translate
00:06:04
between the fully
qualified domain
00:06:06
name, such as
professormesser.com,
00:06:08
to an IP address.
00:06:10
And it's the DNS server that
provides that translation.
00:06:13
We would commonly configure
a DNS in the IP settings
00:06:17
of your operating system.
00:06:18
So in my particular case,
I've assigned 8.8.8.8.
00:06:22
You'll also notice there
are other DNS servers listed
00:06:25
on my machine.
00:06:26
That's because DNS is
such a critical resource
00:06:29
that it's very common to assign
two separate DNS IP addresses
00:06:34
to your configuration.
00:06:35
That way if one DNS
is not available,
00:06:37
you have another DNS
that you can use.
00:06:40
In my example, I have 8.8.8.8
and 8.8.4.4, both of which
00:06:45
are DNS servers
managed by Google.
00:06:48