Lab4 (1130225)
Текст из файла
Лабораторная работа № 4. IP адресация
Objectives:
This lab will focus on your ability to accomplish the following tasks:
-
Name the five different classes of IP addresses
-
Describe the characteristics and use of the different IP address classes
-
Identify the class of an IP address based on the network number
-
Determine which part (octets) of an IP address is the network ID and which part is the host ID
-
Identify valid and invalid IP host addresses based on the rules of IP addressing
-
Define the range of addresses and default subnet mask for each class
Step 1 – Review IP Address classes and Their Characteristics.
Explanation: There are 5 classes of IP addresses (A thru E). Only the first 3 classes are used commercially. We will discuss a class A network address in the table to get started. The first column is the class of IP address. The second column is the first octet which must fall within the range shown for a given class of address. The class A address must start with a number between 1 and 126. The first bit of a class "A" address is always a zero meaning the High Order Bit (HOB) or the 128 bit cannot be used. 127 is reserved for loop back testing. The first octet alone defines the network ID for a class A network address. The default subnet mask uses all binary ones (decimal 255) to mask the first 8 bits of the class A address. The default subnet mask helps routers and hosts determine if the destination host is on this network or another one. Since there are only 126 class A networks, the remaining 24 bits (3 octets) can be used for hosts. Each class A network can have 2^24 power (2 to the 24th power) or over 16 million hosts. It is common to subdivide the network into smaller groupings called subnets using a custom subnet mask which will be discussed in the next lab.
The network or host or host portion of the address can not be all ones or all zeros. As an example, the class A address of 118.0.0.5 is a valid IP address since the network portion (first eight bits equal to 118) is not all zeros and the host portion (the last 24 bits) is not all zeros or all ones. If the host portion were all zeros it would be the network address itself. If the host portion were all 1's it would be a broadcast for the network address. The value of any octet can never be greater than decimal 255 or binary 11111111.
Cls | 1st Octet Decimal Range | 1st Octet High Order Bits | Network / Host ID (N=Network, H=Host) | Default Subnet Mask | Number of Networks | Hosts per Network (usable addresses) |
A | 1 – 126* | 0 | N.H.H.H | 255.0.0.0 | 126 (27 – 2) | 16,777,214 (2 24 – 2) |
B | 128 – 191 | 1 0 | N.N.H.H | 255.255.0.0 | 16,382 (214 - 2) | 65,534 (2 16 – 2) |
C | 192 – 223 | 1 1 0 | N.N.N.H | 255.255.255.0 | 2,097,150 (221 – 2) | 254 (2 8 – 2) |
D | 224 – 239 | 1 1 1 0 | Reserved for Multicasting | |||
E | 240 – 254 | 1 1 1 1 0 | Experimental, used for research |
* Class A address 127 cannot be used and is reserved for loopback and diagnostic functions
Step 2 – Basic IP Addressing.
Task: Use the IP address chart and your knowledge of IP address classes to answer the following questions.
-
What is the decimal and binary range of the first octet of all possible class "B" IP addresses?
Decimal: From: ________ To: ________
Binary: From: ________ To: ________ -
Which octet(s) represent the network portion of a class C IP address? ______________
-
Which octet(s) represent the host portion of a class "A" IP address? ________________
Step 3 – Determine the host and network portion of the IP address.
Task: With the following IP host addresses, indicate the Class of each address, the Network Address or ID, the Host portion, the Broadcast Address for this network and the default Subnet Mask.
Explanation: The host portion will be all zeros for the network ID. Enter just the octets that make up the host. The host portion will be all ones for a broadcast. The network portion of the address will be all ones for the subnet mask.
-
Fill in the following table:
Host IP Address | Addr. Class | Network Address | Host Address | Network Broadcast Address | Default Subnet Mask |
216.14.55.137 | |||||
123.1.1.15 | |||||
150.127.221.244 | |||||
194.125.35.199 | |||||
175.12.239.244 |
-
Given an IP address of 142.226.0.15
-
What is the binary equivalent of the second octet? ____________________
-
What is the Class of the address? _________________________________
-
What is the network address of this IP address? ______________________
-
Is this a valid IP host address (Y/N) ? ______________________________
-
Why or why not?
________________________________________________________________________________________________________________________________________________________________________________________________
-
Which is the maximum number of hosts you can have with a class C network address? ______________________________________________________
-
How many class B networks are there? ______________________
-
How many hosts can each class B network have ? ______________
-
How many octets are there in an IP address? ________ How many bits per octet? ___________________________________________________
Step 4 – Determine which IP host addresses are valid for commercial networks.
Task: For the following IP host addresses determine which are valid for commercial networks. Why or why not?.
Explanation: Valid means it could be assigned to a workstation, server, printer, router interface etc.
-
Fill in the following table.
IP Address | Valid Address? (Yes/No) | Why or why not? |
150.100.255.255 | ||
175.100.255.18 | ||
195.234.253.0 | ||
100.0.0.23 | ||
188.258.221.176 | ||
127.34.25.189 | ||
224.156.217.73 |
2
Характеристики
Тип файла документ
Документы такого типа открываются такими программами, как Microsoft Office Word на компьютерах Windows, Apple Pages на компьютерах Mac, Open Office - бесплатная альтернатива на различных платформах, в том числе Linux. Наиболее простым и современным решением будут Google документы, так как открываются онлайн без скачивания прямо в браузере на любой платформе. Существуют российские качественные аналоги, например от Яндекса.
Будьте внимательны на мобильных устройствах, так как там используются упрощённый функционал даже в официальном приложении от Microsoft, поэтому для просмотра скачивайте PDF-версию. А если нужно редактировать файл, то используйте оригинальный файл.
Файлы такого типа обычно разбиты на страницы, а текст может быть форматированным (жирный, курсив, выбор шрифта, таблицы и т.п.), а также в него можно добавлять изображения. Формат идеально подходит для рефератов, докладов и РПЗ курсовых проектов, которые необходимо распечатать. Кстати перед печатью также сохраняйте файл в PDF, так как принтер может начудить со шрифтами.