Subnetting IPv4 and IPv6



Similar documents
CCNA R&S: Introduction to Networks. Chapter 9: Subnetting IP Networks

Lab Calculating VLSM Subnets

Question Question Question EdTech 552: Lab 3 Answer Sheet

Number of bits needed to address hosts 8

IP Addressing A Simplified Tutorial

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Lab Calculating VLSM Subnets

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

How to Create Subnets To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address.

Advanced IP Addressing

Source net: Destination net: Subnet mask: Subnet mask: Router Hub

Expert Reference Series of White Papers. Binary and IP Address Basics of Subnetting

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

Expert Reference Series of White Papers. Solving the Mysteries of Subnetting

Lab a Basic Subnetting

Type of addressing in IPv4

Module 4, Assignment 3-2

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

You can probably work with decimal. binary numbers needed by the. Working with binary numbers is time- consuming & error-prone.

Lab IP Addressing Overview

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

CCNA Tutorial Series SUBNETTING


IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

Tutorial (03) IP addresses & Sub netting

Activity 6.7.4: IPv4 Address Subnetting Part 2

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

Network and Host Addresses , Cisco Systems, Inc. All rights reserved. INTRO v1.0a 6-4

Subnetting Study Guide

Chapter 3: IP Addressing and VLSM

VLSM and CIDR Malin Bornhager Halmstad University

Classful IP Addressing (cont.)

Expert Reference Series of White Papers. Basics of IP Address Subnetting

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

IST 220 Honors Project. Subnets with Variable Length Subnet Masks

Interconnecting Cisco Network Devices 1 Course, Class Outline

IP Addressing Introductory material.

Expert Reference Series of White Papers. Solving the Mysteries of Subnetting COURSES.

We Are HERE! Subne\ng

Pre-lab Preparation: 1. Read thoroughly and prepare the experiment sheet. 2. You must bring a printed copy of this experiment with you to the lab.

IP Addressing. and Subnetting. Workbook Version 1.5. Student Name:

2.3 IPv4 Address Subnetting Part 2

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

The Subnet Training Guide

PART IV. Network Layer

TCP/IP Addressing and Subnetting. an excerpt from: A Technical Introduction to TCP/IP Internals. Presentation Copyright 1995 TGV Software, Inc.

IP Addressing. IP Addresses. Introductory material.

VLSM Static routing. Computer networks. Seminar 5

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

TCP/IP Basis. OSI Model

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

Chapter 5. IPv4 Addresses. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

IP Networking Part 3- IP Address Management A webinar to help you prepare for the CBNE Certification

One of the most important topics in any discussion of TCP/IP is IP. IP Addressing

Module 2: Assigning IP Addresses in a Multiple Subnet Network

Lab#2: IP Addressing and Subnetting

Internet Addresses (You should read Chapter 4 in Forouzan)

IPv6 Addressing and Subnetting

Objectives. Upon completing this chapter, you will be able to

SYMETRIX SOLUTIONS: TECH TIP April 2014

Introduction to IP v6

WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

TCP/IP Network Essentials. Linux System Administration and IP Services

Subnetting. TELE301 Laboratory Manual. 1 In-Class Exercises Subnetting in IPv6... 4

TCP/IP Cheat Sheet. A Free Study Guide by Boson Software, LLC

IP Subnetting and Addressing

Seven Steps to Subnetting

Internetworking and IP Address

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

IT:101 Cisco Networking Academy I Subnetting

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

examines the ideas related to Class A, Class B, and Class C networks (in other words, classful IP networks).

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

IP Addressing and Subnetting for New Users

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

SUBNETTING SCENARIO S

3201 Computer Networks 2014/2015 Handout: Subnetting Question

256 4 = 4,294,967,296 ten billion = 18,446,744,073,709,551,616 ten quintillion. IP Addressing. IPv4 Address Classes

Internet Protocol version 4 Part I

Developing an IPv6 Addressing Plan Guidelines, Rules, Best Practice

ICS 351: Today's plan

Future Internet Technologies

Packet Tracer 3 Lab VLSM 2 Solution

IPv4 Addressing Simplified. by Ken Foster B.S. IT Information; Security and Forensics Kaplan University January 23, 2011

IP Subnetting. Subnetting

IPv6 Addressing. ISP Training Workshops

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Desirable Properties Of An Internet Addressing Scheme

Chapter 3 LAN Configuration

Subnetting/Supernetting and Classless Addressing

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

IP Addressing Guide Revision: H1CY11

Transcription:

Subnetting IPv4 and IPv6 Advanced Networking: Routing & Switching 1 Chapter 9 Copyleft 2013 Hacklab Cosenza (http://hlcs.it) Released under Creative Commons License 3.0 By-Sa Cisco name, logo and materials are Copyright Cisco Systems Inc. 1

Why subnetting? Using smaller networks we optimize address space Network segmentation, comunication between subnetworks need routing Limiting broadcast Increased security Note: A subnet is equivalent to a network and these terms can be used interchangeably. Most networks are a subnet of some larger address block.

Subnetting = borrowing bits Decimal Binary

2 subnets 192.168.1.0/25 192.168.1.128/25

Number of Subnets and Hosts Calculating Subnets Use this formula to calculate the number of subnets: 2^n (where n = the number of bits borrowed) In the revious 192.168.1.0/25 example, the calculation looks like this: 2^1 = 2 subnets Calculating Hosts per subnetwork Use this formula to calculate the number of hosts per network: 2^n -2 (where n = the number of bits remaining in the host field) In the revious 192.168.1.0/25 example, the calculation looks like this: 2^7-2 = 126 per subnetwork

Subnetting example

Exercise Calculate network address, broadcast address and subnet mask for: 192.168.120.99/28 192.168.120.99/29 100.100.100.100/25 100.100.100.150/30 10.0.1.230/26 10.0.1.230/27

Borrowing bits from 3rd octet

Variable Length Subnet Masks (VLSM) VLSM subnetting is similar to traditional subnetting in that bits are borrowed to create subnets. The formulas to calculate the number of hosts per subnet and the number of subnets created still apply. The difference is that subnetting is not a single pass activity. With VLSM, the network is first subnetted, and then the subnets are subnetted again. This process can be repeated multiple times to create subnets of various sizes.

VLSM Exercise Take the 192.168.1.0/24 and: Subnet it /27 Take the third subnet and subnet it /29 For the second sub-subnetwork print Network address First host address Last host address Broadcast address

VLSM Exercise: solution Take the 192.168.1.0/24 and: Subnet it /27: 192.168.1.0/27 192.168.1.32/27 192.168.1.64/27 (4 more subnets) 192.168.1.224/27 Take the third subnet and subnet it /29 192.168.1.64/29 192.168.1.72/29 192.168.1.80/29 192.168.1.88/29 For the second sub-subnetwork print Network address: 192.168.1.64 First host address: 192.168.1.65 Last host address: 192.168.1.70 Broadcast address: 192.168.1.71 Subnet mask: 255.255.255.248

Planning to Address the Network There are three primary considerations when planning address allocation. Preventing Duplication of Addresses - Without the proper planning and documentation, an address could be assigned to more than one host, resulting in access issues for both hosts. Providing and Controlling Access - Some hosts, such as servers, provide resources to internal hosts as well as to external hosts. If the address is randomly assigned and not well documented, controlling access is more difficult. Monitoring Security and Performance - As part of the monitoring process, network traffic is examined for addresses that are generating or receiving excessive packets. If there is proper planning and documentation of the network addressing, problematic network devices can be easily found.

Classifying addresses Addressing should consider host requirements: Addresses for Clients (DHCP) Addresses for Servers and Peripherals Addresses for Hosts that are Accessible from Internet Addresses for Network (Intermediary) Devices Address for the Gateway (Routers and Firewalls)

IPv6 Subnetting An IPv6 address space is not subnetted to conserve addresses; rather, it is subnetted to support hierarchical, logical design of the network. While IPv4 subnetting is about managing address scarcity, IPv6 subnetting is about building an addressing hierarchy based on the number of routers and the networks they support. An IPv6 address block with a /48 prefix has 16 bits for subnet ID. Subnetting using the 16 bit subnet ID yields a possible 65,536 /64 subnets and does not require borrowing any bits from the interface ID, or host portion of the address.

IPv6 Subnet example

IPv6 Subnetting considerations Subnetting with IPv6 is not drastically different than subnetting with IPv4, we just need to keep a few things in mind: Each character in an IPv6 address represents 4 bits (a nibble). Since 0xF is 1111 in binary, it's easy to fall back into an IPv4 habit and forget that 0x11 is actually 0001 0001 in binary. The leading practice is to receive at least a /48 prefix from an ISP. This leaves you with 2^80 bits to manipulate. More bits than the entire IPv4 address space! According to RFC4291 the current recommended smallest prefix is a / 64. You can assign a /64 to a point-to-point link and not feel guilty. The only exception to this is the recommendation from ARIN to use a /128 on loopback addresses. This gives us one block of hex digits, or 16-bits, to use for subnetting. One block might not sound like much, but 16-bits is half of the entire IPv4 address space.

End of lesson