Anda di halaman 1dari 15

Mengenal VLSM (Variable Length Subnet Mask)

VLSM digunakan untuk membagi IP address menjadi beberapa network. VLSM berguna agar menghindari pemborosan pemakaian / pemberian IP address ke instansi tertentu.VLSM membagi network bukan berdasarkan kelas melainkan berdasarkan subnetmask atau disebut juga Classless Inter-Domain Routing (CIDR).

Kali ini kita akan belajar menggunakan VLSM untuk membagi subnet mask dari sebuah gedung kantor. Misalnya, diketahui sebuah gedung mempunyai 5 buah lantai dimana gedung tersebut memiliki 2 buah IP Lokal yaitu 200.0.1.0/24 dan 200.0.1.0/24. Pada tiap lantai di gedung tersebut mempunyai kebutuhan masing-masing. Misalnya, untuk Accounting Staff dibutuhkan 11 PC. Lalu untuk ruang Server dibutuhkan 3 buah PC. UntukIT Staff dibutuhkan 7 buah PC. Lalu untuk Operational Staff dibutuhkan 28 PC. Terakhir, untuk CS Staff dibutuhkan 30 buah PC. Dikarenakan gedung tersebut mempunyai dua buah IP Lokal, maka kita akan membagi subnet mask untuk kebutuhan per lantai tersebut satu per satu. Menggunakan IP Address 200.0.1.0/24 Diketahui : Jumlah divisi = 5 Jumlah lantai = 5 Jumlah router per lantai = 5 :: Subnet untuk Router per divisi = 5x (5x 3 Host + 5x (NID+BID)) Berarti 2^n 2 >= 125, n = 7, jumlah vlsm = 128 Net prefix = 32 7 = 25 Dikarenakan Net prefixnya berubah maka IP router berubah menjadi 200.0.1.0/25 200.0.1.127/25 dengan netmask 255.255.255.128. Dengan demikian, maka pembagian host per router sama dengan lima. Perhatikan gambar di bawah ini

:: Subnet untuk Router per lantai = 52 Host + 5x(NID + BID) = 20 Berarti 2^n 2 >= 20, n = 5, jumlah vlsm = 32 Net prefix = 32 5 = 27 Dikarenakan Net prefix berubah maka IP router-nya pun berubah menjadi 200.0.1.128/27 200.0.1.159/27 dengan netmask 255.255.255.224 Dengan demikian, maka pembagian host per router sama dengan empat.

Jadi, Subnet untuk per divisi per lantai = 79host + 5 router + NID + BID = 86. Menggunakan IP Address 200.0.2.0/24 Kali ini kita akan menentukan subnet mask untuk IP Address lokal yang kedua. Yang diketahui sama seperti penentuan subnet mask untuk IP Address lokal pertama tadi. Berarti 2n 2 >= 86, n = 7, jumlah vlsm = 128 Net prefix = 32 5 = 27. Maka IP router-nya menjadi IP router menjadi 200.0.2.0/25 200.0.2.127/25 dengan netmask 255.255.255.128 dan pembagian host

per router sama dengan tujuh. Perhatikan gambar di bawah ini!

:: Subnet per divisi dengan range IP sesuai kebutuhan dengan VLSM. Maka hasil subnet-nya adalah sebagai berikut:

Skema Jaringan yang dapat dibentuk

Kuliah Jarkom 4 kali ini mengetengahkan Route Summarization Ada 3 Prinsip Routing oleh Alex Zinin : Setiap router membuat keputusan sendiri, berdasarkan atas informasi yang ada pada routing table-nya. Faktanya ketika sebuah router memiliki informasi yang ada routing table-nya tidak berarti informasi yang sama juga dimiliki oleh router lainnya. Informasi Routing mengenai rute dari sebuah jaringan menuju ke jaringan yang lain tidak berarti disediakan pula informasi mengenai rute kembalinya. Route Summarization : Route summarization yaitu meringkas rute. Maksudnya adalah memperkecil routing table membuat proses pencarian menjadi lebih efisien, karena lebih sedikit rute yang dicari. terdapat tiga rute statis di R3 yaitu : ip route 172.16.1.0 255.255.255.0 Serial0/0/1 ip route 172.16.2.0 255.255.255.0 Serial0/0/1 ip route 172.16.3.0 255.255.255.0 Serial0/0/1 Dapat disederhanakan menjadi jaringan 172.16.0.0/22, karena semua rute menggunakan interface keluaran yang sama, sehingga dapat diringkas menjadi sebuah jaringan 172.16.0.0 dengan subnet mask 255.255.252.0, dan ini disebut summary route. Cara penghitungan pada route summary : terdapat empat rute statis yaitu : 172.16.0.0/16 172.17.0.0/16 172.18.0.0/16 172.19.0.0/16 Dapat disederhanakan menjadi jaringan 172.16.0.0/14, karena semua rute menggunakan interface keluaran yang sama, sehingga dapat diringkas menjadi sebuah jaringan 172.16.0.0 dengan subnet mask 255.252.0.0, dan ini disebutsummary route. Peringkasan rute memiliki beberapa keuntungan untuk jaringan, seperti : Satu rute di tabel routing dapat menginformasikan banyak rute yang lain sehingga akan memperkecil ukuran tabel routing. Mengurangi penggunaan bandwidth untuk proses update routing dalam jaringan Mengurangi tumpangtindih informasi pada router

Berikut adalah contoh konfigurasi route summarization :

Konfigurai R1

Router>ena Router#conf t Router(config)#hostname R1

R1(config)#int fa 0/0 R1(config-if)#ip add 172.18.0.1 255.255.0.0 R1(config-if)#no shut R1(config-if)#exit

R1(config)#int fa 0/1 R1(config-if)#ip add 172.19.0.1 255.255.0.0 R1(config-if)#no shut R1(config-if)#exit

R1(config)#int se 0/0/0 R1(config-if)#ip add 172.17.0.1 255.255.0.0 R1(config-if)#clock rate 9600

R1(config-if)#no shut R1(config-if)#exit

R1(config)#ip route 172.16.0.0 255.255.0.0 s0/0/0 R1(config)#ip route 10.1.0.0 255.255.0.0 s0/0/0 R1(config)#ip route 10.2.0.0 255.255.0.0 s0/0/0 R1(config)#exit

R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/16 is subnetted, 1 subnets S 10.1.0.0 is directly connected, Serial0/0/0 S 10.2.0.0 is directly connected, Serial0/0/0 S 172.16.0.0/16 is directly connected, Serial0/0/0 C 172.17.0.0/16 is directly connected, Serial0/0/0 C 172.18.0.0/16 is directly connected, FastEthernet0/0 C 172.19.0.0/16 is directly connected, FastEthernet0/1 R1# Konfigurasi R2

Router>ena Router#conf t Router(config)#hostname R2

R2(config)#int fa 0/0 R2(config-if)#ip add 172.16.0.1 255.255.0.0 R2(config-if)#no shut R2(config-if)#exit

R2(config)#int se 0/0/0 R2(config-if)#ip add 172.17.0.2 255.255.0.0 R2(config-if)#no shut R2(config-if)#exit

R2(config)#int se 0/0/1 R2(config-if)#ip add 10.2.0.1 255.255.0.0 R2(config-if)#clock rate 9600 R2(config-if)#no shut R2(config-if)#exit

R2(config)#ip route 172.18.0.0 255.255.0.0 s0/0/0 R2(config)#ip route 172.19.0.0 255.255.0.0 s0/0/0 R2(config)#ip route 10.1.0.0 255.255.0.0 s0/0/1 R2(config)#exit

R2#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/16 is subnetted, 2 subnets S 10.1.0.0 is directly connected, Serial0/0/1 C 10.2.0.0 is directly connected, Serial0/0/1 C 172.16.0.0/16 is directly connected, FastEthernet0/0 C 172.17.0.0/16 is directly connected, Serial0/0/0 S 172.18.0.0/16 is directly connected, Serial0/0/0 S 172.19.0.0/16 is directly connected, Serial0/0/0 R2# Konfigurasi R3

Router>ena Router#conf t Router(config)#hostname R3

R3(config)#int fa 0/0 R3(config-if)#ip add 10.1.0.1 255.255.0.0 R3(config-if)#no shut R3(config-if)#exit

R3(config)#int se 0/0/1

R3(config-if)#ip add 10.2.0.2 255.255.0.0 R3(config-if)#no shut R3(config-if)#exit

R3(config)#ip route 172.16.0.0 255.252.0.0 s0/0/1 R3(config)#exit

R3#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/16 is subnetted, 2 subnets C 10.1.0.0 is directly connected, FastEthernet0/0 C 10.2.0.0 is directly connected, Serial0/0/1 S 172.16.0.0/14 is directly connected, Serial0/0/1 Keterangan: Konfigurasi diatas pada R1 dan R2 mengunakan ip route statis, hanya R3 yang menggunakan summary route, ip route 172.16.0.0 255.252.0.0 s0/0/1 pada R3 merupakan summary dari 4 jaringan yaitu : 172.16.0.0 255.255.0.0 172.17.0.0 255.255.0.0 172.18.0.0 255.255.0.0

172.19.0.0 255.255.0.0 dan S 172.16.0.0/14 is directly connected, Serial0/0/1, menerangkan bahwa sudah terkoneksi jaringan 172.16.0.0/14 melalui port Serial0/0/1, yang merupakan summary route.

CIDR (Classless InterDomain Routing).


CIDR (Classless Inter-Domain Routing) was introduced in 1993 (RCF 1517) replacing the previous generation of IP address syntax - classful networks. CIDR allowed for more efficient use of IPv4 address space and prefix aggregation, known as route summarization or supernetting. CIDR introduction allowed for: More efficient use of IPv4 address space Prefix aggregation, which reduced the size of routing tables

CIDR allows routers to group routes together to reduce the bulk of routing information carried by the core routers. With CIDR, several IP networks appear to networks outside the group as a single, larger entity. With CIDR, IP addresses and their subnet masks are written as four octets, separated by periods, followed by a forward slash and a two-digit number that represents the subnet mask e.g. 10.1.1.0/30 172.16.1.16/28 192.168.1.32/27 etc.

CIDR / VLSM Network addressing topology example

CIDR uses VLSM (Variable Lenght Subnet Masks) to allocate IP addresses to subnetworks according to need rather than class. VLSM allows for subnets to be further divided or subnetted into even smaller subnets. Simply, VLSM is just subnetting a subnet. With CIDR, address classes (Class A, B, and C) became meaningless. The network address was no longer determined by the value of the first octet, but assigned prefix length (subnet mask) address space. The number of hosts on a network, could now be assigned a specific prefix depending upon the number of hosts needed for that network. Propagating CIDR supernets or VLSM subnets require a classless Routing Protocols . A classless routing protocol includes the subnet mask along with the network address in the routing update.

Books on IP Addressing and Exam Resources. Summary routes determination Determining the summary route and subnet mask for a group of networks can be done in three easy steps:

1. To list the networks in binary format. 2. To count the number of left-most matching bits. This will give you the prefix length or subnet mask for the summarized route. 3. To copy the matching bits and then add zero bits to the rest of the address to determine the summarized network address. The summarized network address and subnet mask can now be used as the summary route for this group of networks. Summary routes can be used by both static routes and classless routing protocols. Classful routing protocols can only summarize routes to the default classful mask.

ISPs could now more efficiently allocate address space using any prefix length, ISPs were no longer limited to a- 255.0.0.0 or /8, 255.255.0.0 or /16, or 255.255.255.0 or /24 subnet mask which before the advent of CIDR is known as classful network addresses. Blocks of IP addresses could be assigned to a network based on the requirements of the customer, ranging from a few hosts to hundreds or thousands of hosts.

CIDR Advantages
With the introduction of CIDR and VLSM, ISPs could now assign one part of a classful network to one customer and different part to another customer. With the introduction of VLSM and CIDR, network administrators had to use additional subnetting skills. The table below shows allowed subnet and Hosts IP address for all The Classes Class A No. of bits 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Subnet Mask 255.192.0.0 255.224.0.0 255.240.0.0 255.248.0.0 255.252.0.0 255.254.0.0 255.255.0.0 255.255.128.0 255.255.192.0 255.255.224.0 255.255.240.0 255.255.248.0 255.255.252.0 255.255.254.0 255.255.255.0 CIDR No. of Subnets /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22 /23 /24 2 6 14 30 62 126 254 510 1022 2046 4094 8190 16382 32766 65534 No. of Hosts 4194302 2097150 1048574 524286 262142 131070 65534 32766 16382 8190 4094 2046 1022 510 254 Nets * Hosts 8388604 12582900 14680036 15728580 16252804 16514820 16645636 16710660 16742404 16756740 16760836 16756740 16742404 16710660 16645636

17 18 19 20 21 22

255.255.255.128 255.255.255.192 255.255.255.224 255.255.255.240 255.255.255.248 255.255.255.252

/25 /26 /27 /28 /29 /30

131070 262142 524286 1048574 2097150 4194302

126 62 30 14 6 2

16514820 16252804 15728580 14680036 12582900 8388604

Anda mungkin juga menyukai