All right guys that's the lap time again.
As I promised to you I'm going to show you how we calculate the network ideas and how we can find the
first and last type Hill races that we can use in that work on the white board.
All right.
I'm going to make you an example.
We have an IP address and we are going to make
our some amendments too.
And that's our home mask.
All right.
As you can see that we have our eye on this and some mask right now.
And the question is what is our network I.D. And what's the first and last IP addresses that I can use
in this network.
All right guys let's take a look to see how we can accomplish this girl.
But first we need to remind something please remind them please remember that when we are talking in
the slides we told you that I told you that you need to logically and your IP address with your certain
that mask to get the network ID.
All right.
What is logical and as you remember from our slides again logical and it is the process will kill and
that is just one
frustration that four bits are both what if we're using both one and one are logical and the result
will be one on the other scenarios.
We are not going to have one.
We are going to have rules.
I need to here.
We're going to have zero.
All right let's take a look to the my IP address and subnet mask now and I'm going to logically end
them and I'm going to get the my network ready for this I fear this.
Why are we using this summit next.
All right.
Let's take a look to the white board last time going in.
All right.
Cleaning time OK.
This is not ok.
I'm writing my IP address then 14 on
20 and 25.
It was life over.
OK.
As you can see that we have for portions you know our IP address
first second third and fourth portions you can see that we're not right there as as you consider.
All right Paris is in decimal format but actually it's not.
OK.
That's for providing really reading.
But actually our IP address will be in binary format which means binary format is.
We just can't use true numbers.
They are 1 and 0 just.
OK.
As you know the IP address is
32 bits.
We have talked this in our slides.
And as you can see that we have four portions which means each portion going to be 8 bits or 8 8 mans
and 0 or a whiles each field can be a bit.
OK.
Let's calculate the binary format of these numbers right now.
OK what I'm gonna do is I'm going to calculate the binary format of 10:41 20 and 25 by using one and
zeroes.
OK what I'm going to do is for simplicity and get the right the power is off to which N is incorporating
the binary format.
OK true the power is 0 2 1 2 today the power to the power 3 4 5
until Salwen I am writing this way down to my man.
Come on we're writing on till 7.
Because each portion consists of at bits and I'm beginning from zero and I am 27 which means one two
three four five six seven and eight.
As you can see.
All right let's calculate this to the pool where zero is one true to the Power-One is to that's for
and I'm riding the hopes that's going to be a
16
right.
I wrote the powers of two
to calculate the binary Walia.
OK let's do a calculation.
As you can remember what I said is I'm gonna use just 0 and 1 and I have to get these numbers.
I need to get time first.
Let's look at how I can get the 10 from here.
I'm gonna to use this numbers.
Let me call in here.
You know how to calculate this in for
OK.
Howard can get
10 using these numbers together.
I'm going to add them together at some of them together and I need to find the 10.
OK.
To get 10 from here I came to
AIDS.
And two if I add eight to two there's going to be 10.
All right.
And I'm making one to the friends that I used to.
OK.
This is going to be one.
This is going to be one and the other portions go to be zero zero zero zero and zero.
All right.
As you consider eight plus two is ten.
And this is the binary format of 10.
So as you can see.
Let's go.
I'm writing this.
0 0 0 0 1 0 1 0.
OK.
That's my turn.
Let me clean my hand and I need to get the 12:56 how we can get the 12:56 from here.
It's again so easy.
All right let's choose
42 and 16.
OK.
32 plus 16.
That's to be.
This is going to be forty eight which is bigger than our number.
All right.
Which spell that I shouldn't use this or this.
OK.
How can I get it with you.
41 as if I use 32 8 and 1.
What will it be.
It's going to be 41 right.
1 plus 8 plus 32 as 41.
Let's try that again.
All right.
I'm running it.
Do you want 0 0 0 1.
That's 41 great and cleaning and I need 22.
Let's take it to the 20 now 20 will be less likely to be.
And what if I make these portions 1 let's let's Carquest 12 14 15 nothing else.
If I add this one to the end result will be this time 31 with a bigger than 20.
Let's take up to that.
What if I make here Zero.
And these guys are 1 0 6 4 1.
That means oh no it's going to be 0 2.
I thought that is very healthy to anyone OK 16 for 20.
Circle.
OK.
I'm going to use 0.
On the other fellow's.
Let's take a look.
These are and these are now 0 0 0 1 0 0 1 0 1 0.
0 0 0 1 0 0
OK it and when you're 25 and that's going to be there's
there's not there's this there's this less going to be zero you can calculate OK you can get this together
and check if I'm doing right or wrong.
All right.
I'm saying that that's going to be 0 0 0 and 1 0 0 1.
All right.
Let's going in.
This is my binary for men of
my I Paris.
All right.
Let's take a look to the subnet mask if you remember my subnet mask is to revive 2 5 2 4 7 0 and I'm
saying that I'm serious.
Twenty four one that's in my summer mask and 8 0.
It's OK if you
if you add all these numbers to each other you're going to get the 2 5 5 which is the highest number
that you can use in the Bible from that.
All right.
OK.
True for 5 2 5 2 4 5 0 will be an that one subnet mask
my sodomise but it's going to be like this one on one on
yeah.
And what about the third portion for abortion.
This is going to be who's 0 K the 0 means we have a bit of zero or I'm cleaning you OK.
This is the action time right now.
I'm logical and my IP and sudden death mask.
And remember that and will be just one when it's for both what.
OK if I'm using just one of them one my end result will be the one.
But on the other scenarios it's not going to be what it's going to be zero.
I can use just two numbers in the binder from there 1 and zero.
All right.
I'm ending zero.
And what the end result will be zero as I said zoom in on the second it is 0 2 0 0 0 and this is one
I was going to be downs of.
It's going to be one K one zero pay attention that that's going to be 1 2 1 and 0.
All right.
I got my number.
Please pay attention that if I'm ending and number if I'm using logical and with 1 1 1 1 1 1 8 it will
be 1.
I'm getting the same results with my pets.
OK I got 0 0 0 0 0 0 0 0 and 1 0 1 0.
That's the same thing.
As you can see that the binary format of 10 which I got in here.
OK.
Let's take a look to the second portion.
This one again and I'm going to write this portion.
But if you don't write it directly you can calculate you know how to calculate OK the logic behind this
is logical and process just all right.
I'm writing 0 0 1 0 1 0 0 1 that's the same thing with the £41 binary format.
Let's take a look at a third person that's going to be the same again because that's one.
All right.
I'm taking loop and writing in Iran 0 0 1 and 0 1 0.
All right.
Let's take a look to the last portion.
What's going to be the last portion.
The last portion going to be cool.
0.
OK.
Because if printed to check we don't have any one.
We have zero we just mean at least one one bet to have one from the logical process.
And because of that that's going to be zero.
All right.
0 0 0 0 0 0 and 0.
0.
All right.
I got my network ID right now.
This is minor.
Heidi I get to work this one to the decimal for you know as you can see the
I have four portions again.
The first portion is 0 0 0 0 1 0 1 0.
Guys you can write the powers of two and calculate the decimal format of this one again.
But please keep in mind that police check 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 on my gun.
They are the same police.
OK.
As you can see there.
Please pay attention.
If you are using the one on one on one on one with your subnet mask if your logically and then you're
right Paris with her once you get the same Willy.
OK that's 10.
And this one is 41.
This one is 20.
What about this.
What about the last one the last one going to be 0.
All right here is my network I.D. 10 41 20 0.
So I'm cleaning my car.
This is my network Heidi.
OK.
But what I need to show you is the first I can that I can using this network the last IP address that
I can use and the podcast so.
Right.
My stomach mass is 255 255 255.
OK.
All right.
And we have a formula for this.
The formula is to do the forward and decremented by two that gives us the top the IP address space that
I can use in this network for this subnet mask.
OK.
So what is an steps for n is the total zero bits in my subnet mask.
So in my subnet mask I have totally a zero.
That's right.
But keep in mind that I care less and subnet mask are thirty two bids and they are in for portion and
each portion has a base.
So I'm told we have 8 zeros for the scenario.
So true to the power 8 two hundred and fifty four is the end result.
That means I can use 254 IP addresses in this network with this subnet mask pretty good.
So what's the first IP address the first IP address is.
I'm incrementing the IP network ID by one.
OK.
That's the first IP address that we can use to any one.
That's the first step.
So we cames if I can is totally 254 my last IP address will be
20.
That $2 9:54 right.
I'm starting with one finishing with 254 and that's going to be totally two hundred and fifty four IP
addresses.
All right.
Pretty cool.
The last thing I'm going to talk about is the broadcast like the broadcast address is to find the broadcast
IP address.
I'm incrementing the last IP address.
Wow.
OK.
That means my broadcast will be 20 that 201 55 if I want to broadcast if I want to send a packet to
everybody in my work in this network Heidi I should use this IP address that's broadcast.
This one is last one.
This is the first time that I'm using for.