Lab#2: IP Addressing and Subnetting

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

IP Addressing and Subnetting for New Users

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

Part A:Background/Preparation

Chapter 4. IP Addresses: Classful Addressing

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

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 IP Addressing Overview

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

Internet Addresses (You should read Chapter 4 in Forouzan)

Type of addressing in IPv4

Internetworking and IP Address

Chapter 4 IP Addresses: Classful Addressing

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

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

Activity 6.7.4: IPv4 Address Subnetting Part 2

2.3 IPv4 Address Subnetting Part 2


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

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

TCP/IP Basis. OSI Model

VLSM and CIDR Malin Bornhager Halmstad University

PART IV. Network Layer

Subnetting Study Guide

IP Addressing. IP Addresses. Introductory material.

IP Addressing Introductory material.

Chapter 19 Network Layer: Logical Addressing 19.1

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

Lab a Basic Subnetting

IP Addressing A Simplified Tutorial

Classless Subnetting Explained

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

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

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.

Classful IP Addressing (cont.)

Question Question Question EdTech 552: Lab 3 Answer Sheet

Tutorial (03) IP addresses & Sub netting

Subnetting/Supernetting and Classless Addressing

ICS 351: Today's plan

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

Table of Contents 1 IP Addressing Configuration 1-1

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

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

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

CCNA Tutorial Series SUBNETTING

Sybex CCENT Chapter 4: Easy Subnetting. Instructor & Todd Lammle

1. How many unique network IDs are there in class A addresses? # of unique hosts?

Desirable Properties Of An Internet Addressing Scheme

Module 4, Assignment 3-2

CONFIGURING TCP/IP ADDRESSING AND SECURITY

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

Internet Protocol Address

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

IPv6 Addressing. Awareness Objective. IPv6 Address Format & Basic Rules. Understanding the IPv6 Address Components

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

IP Subnetting. Subnetting

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

Internet Protocols. Addressing & Services. Updated:

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

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

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

Module 2: Assigning IP Addresses in a Multiple Subnet Network

Lecture 8. IP Fundamentals

IT:101 Cisco Networking Academy I Subnetting

IP Subnetting and Addressing

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Subnetting Examples. There are three types of subnetting examples I will show in this document:

Future Internet Technologies

3201 Computer Networks 2014/2015 Handout: Subnetting Question

Number of bits needed to address hosts 8

The Subnet Training Guide

No need to operate a DHCP server. If a server s IP address changes, clients will lose the ability to access it!

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

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

Savera Tanwir. Internet Protocol

IP Subnetting for the Masses Or How a 12 year old kid can subnet the most complex network.

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

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.

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

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

SNMP/HTTP Access Control User Manual

8.2 The Internet Protocol

TCP/IP Drill Pack. By Donna Warren. Created by Donna P. Warren Revised: 1/2/2012 Page 1 of 19

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

IP Sub Networking Mini Howto

Internet Protocol version 4 Part I

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

Classful Subnetting Explained

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

We Are HERE! Subne\ng

Lecture Computer Networks

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

CCNA : Cisco Certified Network Associate Study Guide, 5th Edition ( ) Todd Lammle

Internetworking With TCP/IP

Concepts in IP Addressing...

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

SYMETRIX SOLUTIONS: TECH TIP April 2014

Advanced IP Addressing

Transcription:

IP Addressing Lab#2: IP Addressing and Subnetting Each Network Interface Card (NIC or Network card) present in a PC is assigned one Network address called as IP address. This IP address is assigned by the administrator of the network. No two PCs can have the same IP address. There is a burned-in address on the NIC called as Physical Address [or MAC]. The MAC address of a network card indicates the vendor of that card and a unique serial number. Roles of IPv4 Addressing Format of IP address IPv4 is made up of four parts, in the pattern as w.x.y.z. Each part has 8 binary bits and the values in decimal can range from 0 to 255. For example: 31.223.182.162 IP address classes IP addresses are divided into different classes. These classes determine the maximum number of hosts per network ID. Only three classes are actually used for network connectivity. The following table lists all of the address class. IP address class Value of the leftmost byte (part w) Class A 1-126 [0 and 127 are not allowed] Class B 128-191 Class C 192-223 Grouping of IP addresses into different classes: A, B, C, D, and E. Class A: first bit in part w is 0 and others can be anything

0000 0001: 1 0111 1110: 126 First 8 bits are used for network part and the remaining for host part. Class B: First two bits in w are 10, and others can be anything 1000 0000: 128 1011 1111: 191 First 16 bits are used for network part and the remaining for host part Class C: first three bits in w are 110, and others can be anything 1100 0000: 128 1101 1111: 223 First 24 bits are used for network part and last 8 bits for host part. Class D: first four bits in w are 1110, and others can be anything; used for multicast. 1110 0000: 224 1110 1111: 239 Class E: future use or experimental purposes. Default Subnet mask It is used to identify the network part from the host part. Put binary one for the parts that represent network part and zero for the part that represent host part. 2

Address Class Bits for Subnet Mask Subnet Mask Class A 11111111 00000000 00000000 00000000 255.0.0.0 Class B 11111111 11111111 00000000 00000000 255.255.0.0 Class C 11111111 11111111 11111111 00000000 255.255.255.0 Invalid IP address. a) If the network part is all 0s, the address belongs to class A. But this is an invalid ip address because for an ip address all the network or host part should not be all 1s or all 0s. b) If the network part is all 1s, this address belongs to class E. But due to presence of all 1s, it is not valid. This represent broadcast to all networks. c) If the host part is all 0s, this represents network address. This is not a valid ip address. 3

d) If the host part is all 1s, this represents broadcast address. This is not a valid ip address. e) 127.0.0.0 network address is used for loop-back testing. This will help you to check the network card of your own PC [localhost]. f) The validity of the IP address is also based on the subnet mask used provided. Summary: Network address of all 0s Network address of all 1s Network 127.0.0.1 Node address of all 0s Node address of all 1s Entire IP address set to all 0s Entire IP address set to all 1s Interpreted to mean this network or segment. Interpreted to mean all networks. Reserved for loopback tests [localhost] Interpreted to mean network address all nodes on the specified network Default route. Broadcast to all nodes on the current network Unicast: one device calls another. Multicast: one device calls a group of the network. Broadcast: one device calls the entire network. 4

Subnetting Subnetting is the practice of dividing a network into two or more networks. Subnet mask Subnet mask is a 32-bit value that allows the receptionist of IP packet to distinguish network ID portion in the IP address form the host ID portion. Class A, B, and C networks have default masks, also known as natural masks, as shown here: Class A: 255.0.0.0 Class B: 255.255.0.0 Class C: 255.255.255.0 An IP address on a Class A network that has not been subnetted would have an address/mask pair similar to: 8.20.15.1 255.0.0.0. To see how the mask helps you identify the network and node parts of the address, convert the address and mask to binary numbers. 8.20.15.1 = 00001000.00010100.00001111.00000001 255.0.0.0 = 11111111.00000000.00000000.00000000 Once you have the address and the mask represented in binary, then identifying the network and host ID is easier. Any address bits which have corresponding mask bits set to 1 represent the network ID. Any address bits that have corresponding mask bits set to 0 represent the node ID. 8.20.15.1 = 00001000.00010100.00001111.00000001 255.0.0.0 = 11111111.00000000.00000000.00000000 ----------------------------------- net id host id netid = 00001000 = 8 hostid = 00010100.00001111.00000001 = 20.15.1 5

Classless InterDomain Routing (CIDR) A notation that indicates how many 1's are set in the subnet mask. For example, IP address 192.168.1.1 with subnet mask 255.255.255.0 can be written as 192.168.1.1/24. Remember: 255. 255. 255. 0 = 1111 1111. 1111 1111. 1111 1111. 0000 0000 # of 1 s equals 24, so the CIDR of this subnet mask is 24 Another example: For subnet mask 255. 255. 255. 224 = 1111 1111. 1111 1111. 1111 1111. 1110 0000 It can be written as /27, since # of 1 s in it is 27. How to create Subnets? Before you start, you have to answer these questions: How Many Subnets? (2 x ) x: number of masked bits. How Many Hosts per Subnet? (2 y - 2) y: number of remaining bits in host side or unmasked bits. Why -2??? What Are The Valid Subnets? Block size = 2 y As mentioned above, subnetting allows you to create multiple logical networks that exist within a single Class A, B, or C network. If you do not subnet, you are only able to use one network from your Class A, B, or C network, which is unrealistic. 6

Each data link on a network must have a unique network ID, with every node on that link being a member of the same network. If you break a major network (Class A, B, or C) into smaller subnetworks, it allows you to create a network of interconnecting subnetworks. Each data link on this network would then have a unique network/subnetwork ID. In order to subnet a network, extend the natural mask using some of the bits from the host ID portion of the address to create a subnetwork ID. For example, given a Class C network of 204.17.5.0 which has a natural mask of 255.255.255.0, you can create subnets in this manner: 204.17.5.0-11001100.00010001.00000101.00000000 255.255.255.224-11111111.11111111.11111111.11100000 -------------------------- sub ---- By extending the mask to be 255.255.255.224, you have taken three bits (indicated by "sub") from the original host portion of the address and used them to make subnets. With these three bits, it is possible to create eight subnets. With the remaining five host ID bits, each subnet can have up to 32 host addresses, 30 of which can actually be assigned to a device since host ids of all zero s or all one s are not allowed. So, with this in mind, these subnets have been created: Network ID First Valid Host Last Valid Host Broadcast ID 204.17.5.0 204.17.5.1 204.17.5.30 204.17.5.31 204.17.5.32 204.17.5.33 204.17.5.62 204.17.5.63 204.17.5.64 204.17.5.65 204.17.5.94 204.17.5.95 204.17.5.96 204.17.5.97 204.17.5.126 204.17.5.127 204.17.5.128 204.17.5.129 204.17.5.158 204.17.5.159 204.17.5.160 204.17.5.161 204.17.5.190 204.17.5.191 204.17.5.192 204.17.5.193 204.17.5.222 204.17.5.223 204.17.5.224 204.17.5.225 204.17.5.254 204.17.5.255 7

Remember: It is forbidden to go even close to original network address!! You are allowed to use HOST bits only... Example: 192.168.10.15/26 This IP belongs to class C, [24 bits for network and 8 for host] So masked bits = 26 24 = 2. Subnets = 2 2 = 4. Host bits = 8-2 = 6 Another way: 32 26 = 6. Block size = 2 6 = 64. Hosts per block = 64 2 = 62 Subnets: 0, 64, 128, 192 Network ID First Valid Host Last Valid Host Broadcast ID 192.168.10.0 192.168.10.1 192.168.10.62 192.168.10.63 192.168.10.64 192.168.10.65 192.168.10.126 192.168.10.127 192.168.10.128 192.168.10.129 192.168.10.190 192.168.10.191 192.168.10.192 192.168.10.193 192.168.10.254 192.168.10.255 Another example: 172.16.10.15/20 This IP belongs to class B, [16 bits for network and 16 for host] So masked bits = 20 16 = 4. Subnets = 2 4 = 16. Host bits = 16-4 = 12 Another way: 32 20 = 12. Block size = 2 12 = 4096. (16. 0) Hosts per block = 4096 2 = 4094 Subnets: 0.0, 16.0, 32.0, 48.0, 64.0, 80.0, 96.0, 112.0, 128.0, 144.0, 160.0, 176.0, 192.0, 208.0, 224.0, 240.0 8

Network ID First Valid Host Last Valid Host Broadcast ID 172.16.0.0 172.16.0.1 172.16.15.254 172.16.15.255 172.16.16.0 172.16.16.1 172.16.31.254 172.16.31.255 172.16.32.0 172.16.32.1 172.16.47.254 172.16.47.255 172.16.48.0 172.16.48.1 172.16.63.254 172.16.63.255 Complete it yourself... :P 9

Exercises: Part 1 1) Determine the correct class of the following IP addresses: Address 191.107.2.10 172.16.16.15 200.200.5.2 3.3.57.0 131.107.2.89 Class? 2) Which address class (es) will allow you to have more than 1000 hosts per network? 3) Which address class (es) will allow only 254 hosts per network? Part 2 Circle the portion of the IP address that would be invalid if it were assigned to a host, and then explain why it is invalid: 131.107.256.80 222.222.255.222 0.127.4.100 190.7.2.0 127.1.1.1 198.121.254.255 255.255.255.255 Part 3 Determine the Network ID, First Valid Host, Last Valid Host, and Broadcast ID of the following network address/mask pairs: 192.168.1.134/27 160.150.140.130/18 10