Subnetting (Part 3 - VLSM)
Last updated
Last updated
192.168.1.192/27 (/27 = 30 hosts)
192.168.1.11000000 = 192.168.1.192 network address
192.168.1.11011111 = 192.168.1.223 broadcast address
192.168.1.193 = first usable
192.168.1.222 = last usable
30 host usable
192.168.1.224/28 (/28 = 14 hosts)
192.168.1.11100000 = 192.168.1.224 network address
192.168.1.11101111 = 192.168.1.239 broadcast address
192.168.1.225 = first usable
192.168.1.238 = last usable
14 hosts usable
192.168.1.240/30 (/30 = 2hosts)
192.168.1.11110000 = 192.168.1.240 network address
192.168.1.11110011 = 192.168.1.243 broadcast address
192.168.1.241 = first usable
192.168.1.242 = last usable
2 hosts
192.168.5.0/24
Lan2
192.168.5.0/25 (/25 = 126 hosts)
192.168.5.0000 0000 = 192.168.5.0 network address
192.168.5.0111 1111 = 192.168.5.127 broadcast address
255.255.255.128 = netmask address
192.168.5.1 = first usable
192.168.5 126 = last usable
126 total host usable
Lan1
192.168.5.128/26 (/26 = 62 hosts)
192.168.5.1000 0000 = 192.168.5.128 network address
192.168.5.1011 1111 = 192.168.5.191 broadcast address
255.255.255.192 = netmask address
192.168.5.129 = first usable
192.168.5.190 = last usable
62 total host usable
Lan3
192.168.5.192/28 (/28 = 14 hosts)
192.168.5.1100 0000 = 192.168.5.192 network address
192.168.5.1100 1111 = 192.168.5.207 broadcast address
255.255.255.240 = subnet mask
192.168.5.193 = first usable
192.168.5.206 = last usable
14 total host usable
Lan4
192.168.5.208/28 (/28 = 14 hosts)
192.168.5.1101 0000 = 192.168.5.208 network address
192.168.5.1101 1111 = 192.168.5.223 broadcast address
255.255.255.240 = subnet mask
192.168.5.209 = first usable
192.168.5.222 = last usable
14 total host usable
Lan5
192.168.5.224/30 (/30 = 2hosts)
192.168.5.1110 0000 = 192.168.5.224 network address
192.168.5.1110 0011 = 192.168.5.227 broadcast address
255.255.255.252 = subnet mask
192.168.5.225 = first usable
192.168.5.226 = last usable
2 total host usable
Router 1
Interface 1
en
conf t
do show ip int brief
int g0/1
ip add 192.168.5.126 255.255.255.128
desc ## to SW2 ##
do show ip int brief
Then just open up the connection
no shutdown
PC 2
config
ROUTER 1
Interface 0
int g0/0
ip add 192.168.5.190 255.255.255.192
desc ## to SW1 ##
no shut
do show ip int brief
PC1
Change the subnet mask
0 to 192
since its /26
192.168.5.129
1111 1111.1111 1111.1111 1111.1100 0000 = 255.255.255.192 subnet
ROUTER 2
INTERFACE 0
en
conf t
do show ip int brief
int g0/0
ip add 192.168.5.206 255.255.255.240
desc ## to SW3 ##
no shut
do show ip int brief
PC 3
config
CHANGE THE SUBNET MASK
from 0 to 240
255.255.255.0 ----> 255.255.255.240
INTERFACE 1
ROUTER 2
int g0/1
ip add 192.168.5.222 255.255.255.240
desc ## to SW4 ##
no shut
do show ip int brief
PC 4
config
255.255.255.0 -----> 255.255.255.240
ROUTER 1
INTERFACE 0/0/0
en
conf t
do show ip int brief
int g0/0/0
ip add 192.168.5.225 255.255.255.252
desc ## point to point ##
no shut
do show ip int brief
ROUTER 2
INTERFACE 0/0/0
int g0/0/0
ip add 192.168.5.226 255.255.255.252
desc ## point to point ##
no shut
do show ip int brief
CONFIGURE NOW THE ROUTER 2 FOR THEM TO CONNECT ALL
ROUTER 2
ip route 192.168.5.0 255.255.255.128 192.168.5.225
ip route 192.168.5.128 255.255.255.192 192.168.5.225
do show ip route
ROUTER 1
ip route 192.168.5.192 255.255.255.240 192.168.5.226
ip route 192.168.5.208 255.255.255.240 192.168.5.226
do show ip route
NOWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW WE ARE NOW ABLE TO CONNECT ALL
PING COMMAND LETS GO
PC 1 ----> PC 2 , PC 3 , PC 4