vlsm example complete and correct
This commit is contained in:
parent
79e0d59cac
commit
51e45aeffb
17
412/vlsm.md
17
412/vlsm.md
@ -1,9 +1,10 @@
|
|||||||
# VLSM Examples
|
# VLSM Examples
|
||||||
|
|
||||||
Say we have the IP: 210.19.14.0/24
|
Say we have the IPs: 210.19.[14 -> 19].0/24
|
||||||
|
|
||||||
We want to create to networks which support this many hosts
|
We want to create to networks which support this many hosts
|
||||||
|
|
||||||
|
## Part A
|
||||||
* A: 1000 hosts
|
* A: 1000 hosts
|
||||||
* B: 500 hosts
|
* B: 500 hosts
|
||||||
|
|
||||||
@ -16,3 +17,17 @@ If we want to support 1000 hosts we need to borrow the last two bits of that pat
|
|||||||
> __problem__: one of those is 1 which means we can't borrow it as its part of our given network address.
|
> __problem__: one of those is 1 which means we can't borrow it as its part of our given network address.
|
||||||
|
|
||||||
Thus this problem then can't be done given this information.
|
Thus this problem then can't be done given this information.
|
||||||
|
|
||||||
|
If we had been given x.x..12.0 we could do it because 12's bit pattern is `0000 1100`, which leaves the last two bits as 0's that we can use for the hosts.
|
||||||
|
|
||||||
|
## Part B
|
||||||
|
|
||||||
|
This time we need to support 500 hosts so we need 9 bits for the hosts. This time we can use `x.x.14.0` as our network address
|
||||||
|
|
||||||
|
Our mask is /23 `255.255.154.0`. This leaves our network address as `210.19.14.0`.
|
||||||
|
|
||||||
|
* The first host is x.x.14.1
|
||||||
|
|
||||||
|
* The last host is x.x.15.254
|
||||||
|
|
||||||
|
* Broadcast is x.x.15.255
|
||||||
|
Loading…
Reference in New Issue
Block a user