-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lab2Notes.txt
144 lines (93 loc) · 1.9 KB
/
Lab2Notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
Class A
{
first octet for network
remaining 3 for host
Network Host
0 0000000.0.0.0
leading bit fixed
Maximum
127.255.255.255
127(becasue 2^7=128) as first bit is fixed
Network portion = 255 =1111111
Host Portion =0 =00000000
Subnet mask: 255.0.0.0 (11111111.00000000.00000000.00000000)
}
CLass B
{
Network Host
Starting from
128.0 .0.0
Maximum
101111111(191).255 .255.255
Number of network bits=
Ip address/8+8 = 191.255.255.255/16
subnet mask= 255.255.0.0
}
Class C
{
Network Host
Starting from
Minimum
192.0.0 .0
110 00000
Maximum
223.255.255.255/24
maximum usable ips 254
subnetmask= 255.255.255.0
}
Class D
{
Starting from
Minimum
224.0.0.0
1110 0000
Maximum
239.255.255.255/32
subnetmask= 255.255.255.255
}
Class E
{
Starting from
Minimum
224.0.0.0
1111 0000
Maximum
255.255.255.255/32
subnetmask= 255.255.255.255
}
Imp points
{
-for 20 subnets
host octet
00000000
for 20 2^5=32
first 5 bits for network
11111 000
Network Host
Subnet mask= 255.255.255.248
-Classfull A,B,C
-CLassless when Subnetmask made cuz breach of octet for one type
Finding ip of subnet
-find least significant bit lsb for network
-then 2^Lsb
-then keep addding table of that value in host
the ips between can be used
ALWAYS FIRST IP IS FOR NETWORK AND LAST IS FOR BROADCAST!! CANNOT BE USED
-router will know of subnetting when we change the subnet mask
0 1 2 3 4 5 6 7
1 2 4 8 16 32 64 128
-50 client per subnetwork
ipaddress/ 26
host octet 11 000000
-LSB= 2
-2^6=64
-then keep adding 64 in that
Subnet mask= 255.255.255.192(128+64)
Subnet ip 2=209.50.1.64/26
usable ip 1.1 to 1.62
1.64 broadcast
NOW IP is CLASSFULL
}
Task:
case 1 60 subnetwork
case 2 300 clients per subnetwork