Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Заданине подсети 1.docx
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
106 Кб
Скачать
☆

Vlsm Example

Given the same network and requirements as in Sample Exercise 2 develop a subnetting scheme with the use of VLSM, given:

netA: must support 14 hosts

netB: must support 28 hosts

netC: must support 2 hosts

netD: must support 7 hosts

netE: must support 28 host

Determine what mask allows the required number of hosts.

netA: requires a /28 (255.255.255.240) mask to support 14 hosts

netB: requires a /27 (255.255.255.224) mask to support 28 hosts

netC: requires a /30 (255.255.255.252) mask to support 2 hosts

netD*: requires a /28 (255.255.255.240) mask to support 7 hosts

netE: requires a /27 (255.255.255.224) mask to support 28 hosts

* a /29 (255.255.255.248) would only allow 6 usable host addresses

therefore netD requires a /28 mask.

The easiest way to assign the subnets is to assign the largest first. For example, you can assign in this manner:

netB: 204.15.5.0/27 host address range 1 to 30

netE: 204.15.5.32/27 host address range 33 to 62

netA: 204.15.5.64/28 host address range 65 to 78

netD: 204.15.5.80/28 host address range 81 to 94

netC: 204.15.5.96/30 host address range 97 to 98

This can be graphically represented as shown in Figure 5:

Figure 5

Figure 5 illustrates how using VLSM helped save more than half of the address space.

CIDR

Classless Interdomain Routing (CIDR) was introduced to improve both address space utilization and routing scalability in the Internet. It was needed because of the rapid growth of the Internet and growth of the IP routing tables held in the Internet routers.

CIDR moves way from the traditional IP classes (Class A, Class B, Class C, and so on). In CIDR , an IP network is represented by a prefix, which is an IP address and some indication of the length of the mask. Length means the number of left-most contiguous mask bits that are set to one. So network 172.16.0.0 255.255.0.0 can be represented as 172.16.0.0/16. CIDR also depicts a more hierarchical Internet architecture, where each domain takes its IP addresses from a higher level. This allows for the summarization of the domains to be done at the higher level. For example, if an ISP owns network 172.16.0.0/16, then the ISP can offer 172.16.1.0/24, 172.16.2.0/24, and so on to customers. Yet, when advertising to other providers, the ISP only needs to advertise 172.16.0.0/16.

Определите для данного IP адреса 41.79.225.120 / 26 адрес сети, адрес широковешательной рассылки, а также доступный первый и последний IP адрес. Возможно указанный адрес будет адресом сети или широковещательным адресом

Подсеть

Вы ответили 41.79.225.64   Это правильный ответ (41.79.225.64)

Широковещательный адрес этой подсети

Вы ответили 41.79.225.127   Это правильный ответ (41.79.225.127)

Первый IP адрес

Вы ответили 41.79.225.65   Это правильный ответ (41.79.225.65)

Последний IP адрес

Вы ответили 41.79.225.126   Это правильный ответ (41.79.225.126)

В условии задачи указана маска сети 26 бит, следовательно, под адреса компьютеров отводится 32-26=6 бит.

Запишем IP адрес 41.79.225.120 в двоичном формате (на рисунке 2 строка).

Адрес подсети будет являться тот адрес, где в части отведенной под адрес компьютера будут все нули (на рисунке 3 строка).

Широковещательным адресом будет тот адрес, где в части отведенной под адрес компьютера будут все единицы (на рисунке 4 строка).

Первый IP адрес будет на единицу больше адреса подсети. Также можно сказать, что первый адрес это адрес подсети, где младший бит, равен единицы (на рисунке 5 строка).

Последний IP адрес будет на единицу меньше широковещательного адреса. Также можно сказать, что последний адрес это широковещательный адреса, где младший бит, равен нулю (на рисунке 6 строка).