VLSM a CIDR. CCNA2 Kapitola Cisco Systems, Inc. All rights reserved. Cisco Public 1

Similar documents
VLSM and CIDR. Routing Protocols and Concepts Chapter 6. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

CCE1030 Computer Networking

Chapter 6. Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR) CCNA2-1 Chapter 6

Planing, Cabling, Configuring and Testing Your Network

RIPv2. Routing Protocols and Concepts Chapter 7. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved. Cisco Public

Chapter 4 Reading Organizer

Top-Down Network Design

Al-Mustansiriyah University Fourth Year ( )

12 Advanced IP Addressing

Chapter 4: VLSM and Classless Inter Domain Routing. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved.

TDC 363 Introduction to LANs

Sieťová vrstva. sieťová vrstva Internetu (IP, ICMP, ARP, RARP, BOOTP, smerovanie prepojovanie sietí v sieťovej vrstve riadenie preťaženia QoS

Chapter 7: Routing Dynamically. Routing & Switching

Chapter 3. Introduction to Dynamic Routing Protocols. CCNA2-1 Chapter 3

Chapter 5 RIP version 1

Chapter 5. RIP Version 1 (RIPv1) CCNA2-1 Chapter 5

CCNP 1: Advanced Routing

A few notes. The following slides are NOT from the online curriculum. However, they do cover the same topics using different examples.

College of DuPage. CCNA3 V3.0 Switching Basics and Intermediate Routing: Module 1: Introduction to Classless Routing

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS ACCESSIBLE INSTRUCTOR MATERIALS POWERPOINT OBJECTIVES

Computer Networks and Data Systems

Chapter 7. RIP Version 2 (RIPv2)

Chapter 5. RIP Version 1 (RIPv1)

TDC 563 Protocols and Techniques for Data Networks

RIP Version 2. The Classless Brother

The Routing Table: A Closer Look

CIDR VLSM AS. รศ.ดร. อน นต ผลเพ ม Asso. Prof. Anan Phonphoem, Ph.D.

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Introduction to Routing

Draft Manuscript Draft M. Manuscript Draft Ma. t Manuscript Draft Manu. ipt Draft Manuscript Dra. anuscript Draft Manuscri

Computer Networks and Data Systems

Ing. Michal Halás, PhD.

IP Addressing Week 6. Module : Computer Networks Lecturer: Lucy White Office : 324

IP addressing. Overview. IP addressing Issues and solution Variable Length Subnet Mask (VLSM)

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

1. IPv6 is the latest version of the TCP/IP protocol. What are some of the important IPv6 requirements?

Using IP Addressing in the Network Design

SCALABLE INTERNET ROUTING

EXAM CERTIFICATION MAPPING

Chapter 6 Reading Organizer

LAB8: Named EIGRP IPv4

CISCO Certified Network Associate (CCNAX)

Anycast. Ľubor Jurena CEO Michal Kolárik System Administrator

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

IT245 ROUTING AND SWITCHING I

Small additions by Dr. Enis Karaarslan, Purdue - Aaron Jarvis (Network Engineer)

Claim desired outcome

#3 TCP/IP sieťová vrstva

shortcut Tap into learning NOW! Visit for a complete list of Short Cuts. Your Short Cut to Knowledge

Introduction to IP Routing

Internet Protocol Addressing and Routing. Redes TCP/IP

Configuring IP Summary Address for RIPv2

CCNA. Course Catalog

RIP version 1. Routing Protocols and Concepts Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

ABR (Area Border Router), 206, 216 access, dedicated networks, 23 access layer, three-layer hierarchical design model, 6

LAB11: EIGRP IPv4. EIGRP: Stub. Disclaimer

Chapter 8. The Routing Table: A Closer Look

Internet Addresses Reading: Chapter 4. 2/11/14 CS125-myaddressing

Smerovacie algoritmy OSPF a BGP. OSPF (Open Shortest Path First) BGP (Border Gateway Protocol)

IP Router. Introduction to IP Routing. Agenda. IP Routing 1

904 ASBRs (Autonomous System Boundary Routers)

CCNA EXPLORATION V4.0 ROUTING PROTOCOLS AND CONCEPTS

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Top-Down Network Design

CCNA Questions/Answers Routing Protocols

CIS 83 Midterm Spring 2004 Answer Sheet Name Score Grade Question Answer Question Answer

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Routing Information Protocol Version 2.0

Introduction to exterior routing. Autonomous Systems

Network layer: Overview. Network Layer Functions

ASM Educational Center (ASM) Est Cisco CCNA Routing and Switching Certification

Infrastructure - Network management. FAQ document

Aims. The aims of this unit are to: Outline the usage and importance of routing protocols. Understand the problems caused with routing protocols.

COPYRIGHTED MATERIAL. Table of Contents. Assessment Test

CCNA-A Scope and Sequence (March 2007-Draft)

Copyright 2016 by Martin Krug. All rights reserved.

Configuring Redundant Routing on the VPN 3000 Concentrator

CS 457 Networking and the Internet. Addressing. Topics 9/15/16. Fall 2016 Indrajit Ray

Certified Cisco Networking Associate v1.1 ( )

Routing Protocol. RIPv1

Draft Manuscript Draft M. uscript Draft Manuscript. aft Manuscript Draft Ma. cript Draft Manuscript D. ipt Draft Manuscript Dra

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

Routing Architecture. Objectives. Module 2 Routing Fundamentals. Author: Rolf Augstein January 2006

CCNA Exploration: Routing Protocols and Concepts Chapter 8 Case Study

Routing Dynamically. 3.0 Routing Dynamically. Chapter Introduction Class Activity How Much Does This Cost?

Interconnecting Cisco Network Devices: Accelerated

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Introduction to Local and Wide Area Networks

CSCI Computer Networks Fall 2016

Border Gateway Protocol

Introduction to Local and Wide Area Networks

Basic Idea. Routing. Example. Routing by the Network

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Lecture 12: Aggregation. CSE 123: Computer Networks Alex C. Snoeren

Komunikačné protokoly 2005 KP 2005 #3 - IP v02.doc

Routing by the Network

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Network Technology 1 4th - Subnet.! Mario Lombardo -

Table of Contents. Cisco IP Addressing and Subnetting for New Users

Transcription:

VLSM a CIDR CCNA2 Kapitola 6 1

Trošku histórie Pred rokom 1981 IP adresy používali na špecifikáciu siete len prvých 8 bitov Rok1981, RFC 791 Zaviedol adresný priestor s tromi triedami adries Polovica 90 rokov 20 storočia IETF zaviedol Classless Inter-Domain Routing (CIDR) CIDR používa Variable Length Subnet Masking (VLSM) za účelom šetrenia adresného priestoru Iné riešenia problému s adresami Network Address Translation (1994, RFC 1631) Private Addressing (1996, RFC 1918) 2

Triedy adries (classfull) 3

IP adresovanie Štruktúra Ipv4 adresy (RFC 790) Adresa má dve časti network part Ľavá časť IP adresy host časť Pravá časť IP adresy Na zistenie dĺžky sieťovej časti sa používa sieťová maska 4

Classfull vs classless adresovanie Classful adresovanie Zákaznik dostal celu triedu adries Vo vnútri siete mohol priestor subsieťovať Rovnako, t.j. subsiete s rovnakým prefixom Classfull smerovanie Classless adresovanie (CIDR a VLSM) Umožňuje deliť adresný priestor bez obmedzení na triedy Zákazníkmi ako aj poskytovateľmi Zákaznik dostane adresnú množinu identifikovanú prefixom Ktorú môže mechanizmami subsieťovania podeliť Rovnako alebo variabilne (VLSM) Výhoda v použití CIDR pre smerovanie Classless smerovanie 5

Classful vs. Classless smerovací protokol Classful Routing Protocol: Nepodporujú VLSM. Smerovacie updates neobsahujú subnet mask. Subnety iných sietí nie sú preposielané cez rozhrania iných sietí Sumarizácia Discontiguous subnets nie su viditeľné navzájom RIPv1, IGRP Classless Routing Protocol: Podporujú VLSM. Smerovacie updates obsahujú subnet mask. Subnety iných sietí nie sú preposielané cez rozhrania iných sietí Discontiguous subnets su viditeľné navzájom RIPv2, EIGRP, OSPF, IS-IS, BGP 6

Variable Length Subnet Masking (VLSM) VLSM Subsieťovanie subsiete Umožňuje tvorbu subsietí s takým IP priestorom je požadované 7

VLSM Vyžaduje aby smerovacie protokoly distribuovali medzi sebou okrem iných údajov aj údaj o sieťovej maske, ktorú treba aplikovať na propagovanú NET CIDR Classless Interdomain Routing Umožňuje propagovanie subsiete a supersiete aj mimo hraníc classy (mimo sieť s danou adresáciou triedy) Ďalší efekt Umožňuje prideľovať providerom už nie celé triedy adries ale len fragmenty (subsiete) Môžeme použiť aj prvú a poslednú subsieť 8

Classless Inter-domain Routing (CIDR) Supernetting, route summarization, route aggregation Umožňuje sumarizovať siete s maskou, ktorá je kratšia ako default classfull maska 9

Smerovacie tauľky 10

Príklad 11

Topológia zadania Firma B Firma A ISP Internet Firma C Firma D 12

Classfull subsieťovanie Vzor firma D Romulus Tristan ISP Fa 0/0 PC LAN1 S 0/0/0 S 0/0/0 Fa 0/1 Fa 0/1 Fa 0/1 Fa 0/1 Fa 0/2 Fa 0/2 PC LAN2 Remus Isolda Pridelený adresový rozsah: 172.16.255.0/24 Maska: 255.255.255.0 Adresové požiadavky: LAN1: 30 LAN2: 30 Prepoj: 2 13

Classfull subsieťovanie počiatočná úvaha Koľko bitov z 32bit adresy mi bolo pridelených ISP? 24 Aká dlhá je maska adresy siete pridelenej ISP? 24 bitov (255.255.255.0) Koľko podsietí používam v mojej sieti? 3 Odkiaľ si požičiam bity na indexovanie podsietí? Zo štvrtého oktetu Koľko bitov potrebujem na indexovanie potrebných podsietí? 3bity (2 3 = 8) Maximálne koľko podsietí môžem teraz indexovať? 6 podsietí (2 3-2=6) Koľko bitov mi ostáva na indexáciu hostov? Zvyšok štvrtého oktetu (8-3) = 5bitov Koľko host adries môžem mať v podsieti? Max 2 5-2 = 30 adries na podsieť 14

Classfull subsieťovanie - výsledok Subsiete vzniknuté subsieťovaním pôvodného adresného rozsahu 172.16.255.0/24 tromi bitmi Vzniká nová maska, používaná v celej sieti: 255.255.255.224 (/27) Podsieť Adresa podsiete Prvá použiteľná adresa Posledná použiteľná adresa Broadcastová adresa Prvá 172.16.255.32 172.16.255.33 172.16.255.62 172.16.255.63 Druhá 172.16.255.64 172.16.255.65 172.16.255.94 172.16.255.95 Tretia 172.16.255.96 172.16.255.97 172.16.255.126 172.16.255.127 Štvrtá 172.16.255.128 172.16.255.129 172.16.255.158 172.16.255.159 Piata 172.16.255.160 172.16.255.161 172.16.255.190 172.16.255.191 Šiesta 172.16.255.192 172.16.255.193 172.16.255.254 172.16.255.255 15

Classfull subsieťovanie pridelenie adries ISP Druhá podsieť: k ISP: dodá ISP 172.16.255.64 Fa 0/0.65.66 Romulus Remus.33 255.255.255.224 S 0/0/0 S 0/0/0 Fa 0/1 Fa 0/1.97 Fa 0/1 Fa 0/1 Prvá podsieť: 172.16.255.32 255.255.255.224 Tristan.34 Fa 0/2 Fa 0/2 Isolda.98 Tretia podsieť: 172.16.255.96 255.255.255.224 PC PC 16

Classless subsieťovanie Vzor firma D (VLSM) Romulus Tristan ISP Fa 0/0 PC LAN1 S 0/0/0 S 0/0/0 Fa 0/1 Fa 0/1 Fa 0/1 Fa 0/1 Fa 0/2 Fa 0/2 PC LAN2 Remus Isolda Pridelený adresný rozsah: 172.16.255.0/24 Maska: 255.255.255.0 Adresné požiadavky: LAN1: 100 LAN2: 60 Prepoj: 2 17

Classless subsieťovanie počiatočná úvaha Pravidlo: Musím uspokojiť požiadavky od najväčších k menším Krok 1 Ktorá sieť má najvyššiu požiadavku na adresný priestor? Lan 1, 100 IP adries Vykonáme subsieťovanie na uspokojenie tejto požiadavky: Koľko bitov musí ostať v host ID? 7 bitov (2 7 =128) Aké adresy podsietí vzniknú? 172.16.255.0/25 použijeme pre Lan 1 172.16.255.128/25 zatiaľ nepoužitá Krok 2 Ktorá sieť má druhú najvyššiu požiadavku na adresný priestor? Lan 2, 60 IP adries Vykonáme subsieťovanie na uspokojenie tejto požiadavky, avšak ostáva nám už len časť nepoužitého adresného priestoru 172.16.255.128/25 Koľko bitov musí ostať v host ID? 6 bitov (2 6 =64) Aké adresy podsietí vzniknú? 172.16.255.128/26 použijeme pre Lan 2 172.16.255.192/26 zatiaľ nepoužitá 18

Classless subsieťovanie počiatočná úvaha Krok 3 Ktorá sieť má tretiu najvyššiu požiadavku na adresný priestor? Prepoje smerovačov, 2 IP adries Vykonáme subsieťovanie na uspokojenie tejto požiadavky, avšak ostáva nám už len časť nepoužitého adresného priestoru 172.16.255.192/26 Koľko bitov musí ostať v host ID? 2 bitov (2 2 =4) Aké adresy podsietí vzniknú? 172.16.255.192/30 použijeme pre Core prepoj 172.16.255.196/30 zatiaľ nepoužitá...... 172.16.255.252/30 zatiaľ nepoužitá 19

Classlessl subsieťovanie - výsledok Subsiete vzniknuté subsieťovaním pôvodného adresného rozsahu 172.16.255.0/24 variabilne Podsieť Adresa podsiete Maska podsiete Prvá použiteľná adresa Posledná použiteľná adresa Broadcastová adresa LAN1 172.16.255.0 255.255.255.128 172.16.255.1 172.16.255.126 172.16.255.127 LAN2 172.16.255.128 255.255.255.192 172.16.255.129 172.16.255.190 172.16.255.191 Prepoj 172.16.255.192 255.255.255.252 172.16.255.193 172.16.255.194 172.16.255.195 20

Classless subsieťovanie pridelenie adries ISP Prepoj: k ISP: dodá ISP 172.16.255.192 Fa 0/0.193.194 Romulus Remus.1 255.255.255.252 S 0/0/0 S 0/0/0 Fa 0/1 Fa 0/1.129 Fa 0/1 Fa 0/1 LAN1: 172.16.255.0 255.255.255.128 Tristan.2 Fa 0/2 Fa 0/2 Isolda.130 LAN2: 172.16.255.128 255.255.255.192 PC PC 21