This presentation contains why we need sub netting, how we do sub netting, CIDR, Subnet mask, Subnet mask value, Class A Sub netting, Class B Sub netting, Class C Sub netting.
Building or redesigning an intranet in 2016? Most intranet managers have an idea of where they want to go, but few have a formalized strategy and roadmap.
Your strategy is a plan about how to take action.
This presentation from intranet expert Steve Bynghall gives you a highly practical framework to derive and articulate your intranet strategy. Whether you’re part of a team with a new intranet project or the business owner of a stale and stagnant intranet, you'll find this presentation valuable..
Highlights:
What is an intranet strategy and why do you need one?
The importance of being objective: the discovery phase
Research sources: data inputs, stakeholder analysis, other sources
Formalizing the strategy and action plan
Communicating and socializing the strategy
This presentation contains why we need sub netting, how we do sub netting, CIDR, Subnet mask, Subnet mask value, Class A Sub netting, Class B Sub netting, Class C Sub netting.
Building or redesigning an intranet in 2016? Most intranet managers have an idea of where they want to go, but few have a formalized strategy and roadmap.
Your strategy is a plan about how to take action.
This presentation from intranet expert Steve Bynghall gives you a highly practical framework to derive and articulate your intranet strategy. Whether you’re part of a team with a new intranet project or the business owner of a stale and stagnant intranet, you'll find this presentation valuable..
Highlights:
What is an intranet strategy and why do you need one?
The importance of being objective: the discovery phase
Research sources: data inputs, stakeholder analysis, other sources
Formalizing the strategy and action plan
Communicating and socializing the strategy
Chương 4 Kết nối mạng và Internet - Giáo trình FPTMasterCode.vn
Biết cách thiết lập thông số trên modem để sử dụng Internet
Thiết lập được chế độ cấp phát động, tĩnh địa chỉ IP
Kết nối từ hệ điều hành Windows vào hệ thống mạng
Thay đổi được các thiết lập mạng
Chia sẻ Internet cho nhiều máy trong mạng LAN
2. Objectives
Network+ Guide,
4e
Understanding structure of IP addresses,
methods of network design use to TCP/IP
networks.
Explain the differences between public and
private networks.
Explain the differences between Broadcast,
Multicast, Unicast, Anycast, Loopback
address.
Understanding Subnetmask and Variable
Length Subnet Masking (VLSM)
Understanding IP version 6.
COMPANY LOGO
3. OVERVIEW
Network+ Guide,
4e
Chapter prerequisites: OSI model
Subjects participation: all students to
study computer network.
Reference materials:
Cơ bản về subnet – http://vocongminh.wordpress.com
Phân chia mạng con - http://vocongminh.wordpress.com.
Required materials:
Slides: IP-SUBNET
Learning methods:
Students study with the guidance of teachers.
Students can refer to the syllabus.
Do homework
COMPANY LOGO
4. Network+ Guide,
4e
I. OVERVIEW IP ADDRESS version 4
IP addresses is structurre address.
Include a string of 32 bits, divided
into four parts. Each part is called
an octet (8 bit) and separated by
dots (.)
COMPANY LOGO
5. I. OVERVIEW IP v4
Network+ Guide,
4e
Three ways to represent IP address
Decimal:
130 . 57 . 30 . 56
Binary:
10000010 . 00111001 . 00011110 . 00111000
Hex
:
82 . 39 . 1E . 38
IP Address of two components :
NetID (Network Address)
Host ID (Node Address)
NetID : a unique number used to identify a network. Each
computer in a network always have the same NetID.
HostID: a unique number assigned to a computer or device
on network.
COMPANY LOGO
6. I. OVERVIEW IP v4
Network+ Guide,
4e
100001001001001001001110
32 bits
11000101
NETWORK
HOST
32 bits
10011000 10000101
8 bits
150
8 bits
8 bits
.
133
8 bits
00110000 10111001
8 bits
.
48
8 bits
8 bits
.
185
.
8 bits
COMPANY LOGO
7. Network+ Guide,
4e
I. CLASSES OF IP ADDRESS
IP address is divided
into 5 classes: A, B, C, D,E
Class D is Multicast address
Class E for reserves .
Class A,B,C is using.
Class A
Class B
Network ID
Network ID
Host ID
Host ID
Network ID
Network ID
Host ID
Host ID
Network ID
Network ID
Class C
w
x
Host ID
Host ID
y
z
COMPANY LOGO
8. CLASS A
Network+ Guide,
4e
•
•
•
Formating:
NetID . HostID . HostID . HostID
1st Octet High Order Bits: 0
Except for the first bit 0 identifies class A, 7
bits remaining can get the value 0 or 1 => ? NetID
=> 2 7 = 128 NetID
• However, all the bits = 0 or 1 are not used so the number
of class A have NetID = ?
= 2 7 - 2 = 128 - 2 = 126 NetID
Class A
24 Bits
0xxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
# Bits
0
NETWORK#
HOST
HOST#
HOST
HOST
HOST#
HOST#
COMPANY LOGO
9. CLASS A
Network+ Guide,
4e
• The numbers of HostID in class A = ? host
= 2 24=8 bit * 3 octer - 2 = 16.777.214 host
• NetID :
1.0.0.0 to 126.0.0.0
• HostID :
W.0.0.1 đến W.255.255.254
Ex:
NetID: 10.0.0.0
HostID: 10.0.0.1;10.0.0.2;…….10.255.255.254
COMPANY LOGO
10. Network+ Guide,
4e
CLASS B
•
•
•
Formating :
NetID . NetID . HostID . HostID
1st Octet High Order Bits :
10
Except for the first two bits are 10 , remaining
bits can be 0 or 1 .
• => 2 14 = 16.384 NetID
• NetID in decimal: 128 to 191
Class B
10xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
NETWORK
# Bits
NETWORK
HOST
1
1
14
1
0
NETWORK#
HOST
16
HOST#
COMPANY LOGO
11. CLASS B
Network+ Guide,
4e
• The numbers HostID in class B:
2 16 - 2 = 65.534 HostID
• NetID :
•
•
•
•
128.0.0.0 >> 191.255.0.0
HostID:
W.X.0.1 >> W.X.255.254
Ex:
NetID: 128.10.0.0
HostID: 128.10.0.1;128.10.0.2;
…….;128.10.255.254
COMPANY LOGO
12. Network+ Guide,
4e
CLASS C
Formating :
NetID.NetID.NetID.HostID
1st Octet High Order Bits :
110
=> 2 21 = 2.097.152 NetID
NetID in decimal: 192 to 223
Class C
110xxxxx xxx xxxxx xxx xxxxx xxx xxxxx
NETWORK
# Bits
NETWORK
1
1
1
1
NETWORK
1
0
HOST
21
8
NETWORK#
HOST#
COMPANY LOGO
13. CLASS C
Network+ Guide,
4e
• The numbers HostID in class B :
2 8 - 2 = 254 HostID
• NetID:
192.0.0.0 >> 223.255.255.0
• HostID
W.X.Y.1 >> W.X.Y.254
• Ex:
NetID: 203.100.100.0
HostID: 203.100.100.1 ; 203.100.100.2 ; …..
COMPANY LOGO
15. SUMMARY
Network+ Guide,
4e
1 . 0.0.1 126 . 0.0.254
: Class A
127 . 0.0.0
: Loopback Network
128.0. 0.1 191.255 . 255.254
: Class B
192.0.0. 1 223.255.255. 254 : Class C
224.0.0.0 240.0.0.0
>= 240.0.0.0
: Class D (Multicast)
: Class E (Reserved)
COMPANY LOGO
16. IP PRIVATES
Network+ Guide,
4e
Address space is assigned for exclusive
use in the network of organizations and
companies, but not the public Internet.
Class A :
10. 0.0.0 10.255.255.255
Class B :
172.16. 0.0 172.31. 255.255
Class C : 192.168.0. 0 192.168.255. 255
COMPANY LOGO
17. Network+ Guide,
4e
BROADCAST ADDRESS
Broadcast address: is possible to send data to all
possible destinations ("all-hosts broadcast"), which permits
the sender to send the data only once, and all receivers
receive a copy of it.
Directed broadcast address: is the IP address in
which all the bits in the Host ID are 1.
• Ex: 192.168.20.255
Local broadcast address: is
the IP address in which all the bits in the
NetID and Host ID are 1
• Ex: 255.255.255.255
COMPANY LOGO
20. Network+ Guide,
4e
MULTICAST ADDRESS
IP multicast: is the delivery of a
message or information to a group of
destination computers simultaneously in a
single tranmission.
COMPANY LOGO
21. UNICAST
Network+ Guide,
4e
Unicast transmission is the sending of
messages to a single network destination
identified by a unique address
COMPANY LOGO
22. ANYCACST
Network+ Guide,
4e
Anycast is a network addressing and routing
methodology in which datagrams from a single sender
are routed to the topologically nearest node in a group
of potential receivers all identified by the same
destination address.
COMPANY LOGO
23. LOOPBACK
Network+ Guide,
4e
Loopback address is a special IP number
(127.0.0.0 – 127.255.255.255)
The loopback interface allows IT
professionals to test IP software corrupted
drivers or hardware.
COMPANY LOGO
24. Network+ Guide,
4e
EXAMPLE IP ADDRESS
172.16.20.200 is Class B address
Network portion :
172.16
Host portion :
20.200
Network address :
172.16.0.0
Broadcast address : 172.16.255.255
COMPANY LOGO
26. Objectives
Network+ Guide,
4e
Subnet Mask used to
determine the IP address is part
of the network and which is thehost.
Subnet Mask is 32 bits in length.
Is divided into four octets.
The bits in a Network will be set 1.
The bit in the Host will be set 0.
DEFAULT Subnet Mask
Class A : 255 . 0.0.0
Class B : 255.255 . 0.0
Class C : 255.255.255 . 0
COMPANY LOGO
29. Network+ Guide,
4e
Why are you take subneting?
Network administrators sometimes need to split the
network from a large network into subnets to
purpose:
Size reduction, accordance with existing
network models of the company or organization ...
To decentralize management
Reduce congestion by limiting the scope
of broadcast messages.
Limited scope for each subnet to troubeshouting.
Enhanced security
To permit the application of different
configurations on each subnet?
Router is used to connect between these subnets.
COMPANY LOGO
30. Thực hiện
Network+ Guide,
4e
Lấy các bits cao nhất của Phần HostID
cho phần NetwokID
Số bits tối thiểu có thể mượn là: 2 bits.
Số bits tối đa có thể mượn là:
A : 22 bits ~ 2^22 - 2 = 4.194.302
subnets.
B : 14 bits ~ 2^14 - 2 =
16.382
subnets.
C : 06 bits ~ 2^6 - 2 =
62
subnets.
COMPANY LOGO
31. www.themegallery.com
Ví dụ về chia Subnet
Khi ta chia một Network ra thành nhiều
Network nhỏ hơn, các Network nhỏ nầy được
gọi là Subnet.
Hãy xét đến một địa chỉ IP class B :
139.12.0.0 với subnet mask là 255.255.0.0 (có
thể viết là: 139.12.0.0/16, ở đây số 16 có
nghĩa là 16 bits được dùng cho NetworkID).
Một Network với địa chỉ thế nầy có thể chứa
65,534 nodes hay computers (65,534 = (2^16)
–2 ) . Đây là một con số quá lớn, trên mạng
sẽ có quá nhiều broadcast traffic.
COMPANY LOGO
32. Ví dụ về chia Subnet
Network+ Guide,
4e
Cho địa chỉ IP: 139.12.0.0
Chia Network này ra làm 4 Subnet .
Yêu cầu
1. Xác định số bit cần mượn để làm NetID
2. Xác định tổng số host trên mỗi subnet và trên toàn hệ
thống.
3. Xác định Subnet mask
4. Liệt kê địa chỉ mạng của các Subnet mới
5. Cho biết IP address range của các HostID trong mỗi
Subnet
6. Xác định địa chỉ broadcast cho từng subnet.
COMPANY LOGO
33. THỰC HIỆN
Network+ Guide,
4e
1. Xác định số bit cần mượn để làm NetID
Công thức tổng quát là: Y <= 2 X
• Y = con số Subnets (= 4)
• => X = số bits cần mượn thêm (= 2)
2. Số hosts tối đa có trong mỗi Subnet sẽ
là:
(2^14) –2 = 16,382 .
Tổng số các hosts trong 4 Subnets là:
16382 * 4 = 65,528 hosts.
COMPANY LOGO
34. www.themegallery.com
3. Xác định Subnet mask
Vì địa chỉ 139.12.0.0 thuộc lớp B, nên ta có Subnet
mask default là: 255.255.0.0
Do đó Subnet mask sẽ cần :
16 (bits trước đây) + 2 (bits mới) = 18 bits
Địa chỉ IP mới sẽ là 139.12.0.0/18 (để ý con số 18
thay vì 16 như trước đây).
Subnet mask trong dạng nhị phân
11111111 11111111 11 000000
00000000
Subnet mask
255.255.192.0
COMPANY LOGO
35. www.themegallery.com
4. Liệt kê NetID của các Subnet mới
Như thế NetworkID của bốn Subnets mới có là:
Subnet
Subnet ID trong dạng nhị phân
Subnet ID
1
10001011.00001100.00 000000.00000
000
10001011.00001100.01 000000.00000
000
10001011.00001100.10 000000.00000
000
10001011.00001100.11 000000.00000
000
139.12.0.0/18
2
3
4
139.12.64.0/18
139.12.128.0/1
8
139.12.192.0/1
8
COMPANY LOGO
36. www.themegallery.com
5. Cho biết IP address range của các HostID trong mỗi
Subnet
Vì Subnet ID đã dùng hết 18 bits nên số bits còn lại (32 – 18
= 14) được dùng cho HostID.
Lưu ý: luật dùng cho Host ID là tất cả mọi bits không thể đều
là 0 hay 1.
Subne
t
1
2
HostID IP address trong dạng nhị phân
10001011.00001100.00 000000.000000
01
10001011.00001100. 00 111111.1111
1110
HostID IP address
Range
139.12.0.1/18
139.12.63.254/18
139.12.64.1/18
139.12.127.254/1
8
10001011.00001100.01 000000.000000
01
10001011.00001100. 01 111111.1111
1110
Trong mỗi Subnet, range của HostID từ con số nhỏ nhất
3
139.12.128.1/18
( màu xanh ) đến con số lớn nhất ( màu cam ) đều giống
10001011.00001100.10 000000.000000
139.12.191.254/1
nhau
01
8
COMPANY LOGO
37. www.themegallery.com
6. Xác định địa chỉ broadcast cho từng subnet.
Subnet
1
2
3
4
Địa chỉ broadcast trong dạng nhị
phân
10001011.00001100.00 111111.11111
111
10001011.00001100.01 111111.11111
111
10001011.00001100.10 111111.11111
111
10001011.00001100.11 1111111.1111
11111
Broadcast
139.12.63.255
139.12.127.25
5
139.12.191.25
5
139.12.255.25
5
COMPANY LOGO
38. BÀI TẬP 2
Network+ Guide,
4e
Bạn đang quản trị mạng cho 1 công ty, gồm 6
phòng ban.Bạn đã mua IP cho mạng này là
18.0.0.0
Hãy chia mạng này thành 6 mạng con cho mỗi
phòng để dể quản lý và cấp quyền. Cho biết:
1. Xác định số bit cần mượn để làm NetID
2. Xác định tổng số host trên mỗi subnet và
trên toàn hệ thống.
3. Xác định Subnet mask
4. Liệt kê địa chỉ mạng của các Subnet mới
5. Cho biết IP address range của các HostID
trong mỗi Subnet
6. Xác định địa chỉ broadcast cho từng subnet.
7. Tổng kết
COMPANY LOGO
39. BÀI TẬP 3
Network+ Guide,
4e
Bạn đang quản trị mạng cho 1 công ty, gồm 4
phòng ban.Bạn đã mua IP cho mạng này là
192.17.6.0
Hãy chia mạng này thành 4 mạng con cho mỗi
phòng để dể quản lý và cấp quyền. Cho biết:
1. Xác định số bit cần mượn để làm NetID
2. Xác định tổng số host trên mỗi subnet và
trên toàn hệ thống.
3. Xác định Subnet mask
4. Liệt kê địa chỉ mạng của các Subnet mới
5. Cho biết IP address range của các HostID
trong mỗi Subnet
6. Xác định địa chỉ broadcast cho từng subnet.
7. Tổng kết
COMPANY LOGO
40. Bài tập về nhà:
Network+ Guide,
4e
Bạn đang quản trị mạng cho 1 công ty, gồm 8 phòng
ban.Bạn đã mua IP cho mạng này là 195.23.0.0
Hãy chia mạng này thành 8 mạng con cho mỗi phòng để
dể quản lý và cấp quyền. Cho biết:
1. Xác định số bít cần mượn của HostID
2. Xác định subnetmask cho các mạng con (subnet)
3. Tính tổng số Host trong mỗi mạng và trong toàn mạng.
4. Cho biết IP Address Range của các hostID của mỗi Subnet.
5. Xác định địa chỉ Broadcast của từng Subnet
6. Xác định NetID của từng Subnet.
COMPANY LOGO
41. Network+ Guide,
4e
chiều dài
Bài tập: Chia địa chỉ IP có chiều dài
biến đổi (VLSM)
Bạn đang quản trị mạng cho 1 công ty,
gồm 6 phòng ban với thông tin sau đây:
LAN 1: 3 host.
LAN 2: 35 host.
LAN 3: 6 host.
LAN 4: 20 host.
LAN 5: 2 host(WAN).
LAN 6: 10 host
LAN 7: 20 host
Bạn đã mua IP cho mạng này là
COMPANY LOGO
194.1.1.0/24
42. Network+ Guide,
4e
1. Xác định số bít cần mượn của HostID cho từng LAN
2. Xác định subnetmask cho các mạng con (subnet)
3. Cho biết IP Address Range của các hostID của mỗi
Subnet.
4. Xác định địa chỉ Broadcast của từng Subnet
5. Xác định địa chỉ Network của từng Subnet
COMPANY LOGO
43. Network+ Guide,
4e
biến đổi
Chia địa chỉ IP có chiều dài biến đổi
(VLSM)
IP ADDRESS
Net
192
1
1
x
x
x
x
x
x
x
x
192
1
1
0
0
x
x
x
x
x
x
L2 (2^6=64>35)
192
1
1
0
1
x
x
x
x
x
x
Dư
192
1
1
0
1
0
x
x
x
x
x
L4 (20 host)
192
1
1
0
1
1
x
x
x
x
x
L7 (20 host)
192
1
1
1
0
0
x
x
x
x
x
Dư
192
1
1
1
0
0
0
x
x
x
x
L6 (10 host)
192
1
1
1
0
0
1
x
x
x
x
Dư
192
1
1
1
0
0
1
0
x
x
x
L3
192
1
1
1
0
0
1
1
x
x
x
L1
192
1
1
1
0
1
0
0
x
x
x
Dư
192
1
1
1
0
1
0
0
0
x
x
L5
192
1
1
1
0
1
0
0
1
x
x
Dư
COMPANY LOGO