You are on page 1of 34

MODULE 1

Planning and implementing an IPv4 network


MODULE OVERVIEW
Planning IPv4 addressing
Configuring an IPv4 host
 Managing and troubleshooting IPv4 network
connectivity
LESSON 1: PLANNING IPV4 ADDRESSING
Overview of IPv4 settings
Defining subnets
Public, private, and APIPA addresses
Discussion: Determining IPv4 notation and translation
Discussion: Creating a subnetting scheme for a new office
 Creating supernets
OVERVIEW OF IPV4 SETTINGS

Dotted decimal notations are based on the decimal number


system, but computers use IP addresses in binary
Within an 8‑bit octet, each bit position has a decimal value:
• A bit that is set to 0 always has a zero value
• A bit that is set to 1 can be converted to a decimal value
• The low‑order bit represents a decimal value of 1
• The high‑order bit represents a decimal value of 128

If all bits in an octet are set to 1, then the octet’s decimal


value is 255, the highest possible value of an octet:
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
OVERVIEW OF IPV4 SETTINGS
 Each networked computer must be assigned a unique IPv4
address
 Network communication for a computer is directed to the IPv4
address of the computer
 Each IPv4 address contains:
 Network ID, identifying the network
 Host ID, identifying the computer
 The subnet mask identifies which part of the IPv4 address is the
network ID (255) and which is the host ID (0)

IP address 172 16 0 10
Subnet mask 255 255 0 0
Network ID 172 16 0 0
Host ID 0 0 0 10
OVERVIEW OF IPV4 SETTINGS

An IPv4 configuration identifies a computer to other computers on a network

Subnet 1 IP Address: 192.168.1.180


Subnet mask: 255.255.255.0

IP Address: 192.168.1.182 IP Address: 192.168.1.181


Subnet mask: 255.255.255.0 Subnet mask: 255.255.255.0

Dotted decimal representation


of the address and subnet mask
DEFINING SUBNETS
Class A (/8) Network Host ID
large network ID
0
w x y z

Class B (/16) Network ID Host ID


medium network
10
w x y z

Class C (/24) Network ID Host ID


small network
110
w x y z
DEFINING SUBNETS
Class B Address with Subnet

Subnets Usable Hosts

Network Bits 248


16256
64
32128
1 4094
2046254
1022
3276665534
16382
8190510

255 255 255


248
224
240
254
128
0
192
252 0
DEFINING SUBNETS
An IPv4 configuration identifies a computer to other computers on a network

Subnet 1 IP Address: 192.168.1.180


Subnet mask: 255.255.255.0

IP Address: 192.168.1.182 IP Address: 192.168.1.181


Subnet mask: 255.255.255.0 Subnet mask: 255.255.255.0

Dotted decimal representation Default gateway defines the


of the address and subnet mask preferred router

Subnet 2 IP Address: 192.168.2.200


Subnet mask: 255.255.255.0

IP Address: 192.168.2.202
Subnet mask: 255.255.255.0
IP Address: 192.168.2.201
Subnet mask: 255.255.255.0
DEFINING SUBNETS
172.16.16.0/22

172.16.17.0/24

172.16.20.0/22
172.16.17.1

172.16.16.0/20 172.16.24.0/22 172.16.18.0/24

172.16.17.254

172.16.28.0/22
PUBLIC, PRIVATE, AND APIPA ADDRESSES

Public Private
• Required by devices and • Not routable on the
hosts that connect directly Internet
to the Internet • 10.0.0.0/8
• 172.16.0.0/12
• Must be globally unique • 192.168.0.0./16
• Routable on the Internet • Can be assigned locally
• Must be assigned by by an organization
IANA/RIR • Must be translated to
access the Internet
DISCUSSION: DETERMINING IPV4 NOTATION AND
TRANSLATION

Discuss the examples on the following slides

20 minutes
CREATING SUPERNETS
• Supernetting combines multiple small networks into a
larger network
• The networks that you combine must be contiguous

• The following table shows an example of supernetting two


class C networks (host bits underlined)

Network Range
192.168.00010000.00000000/24 192.168.16.0 - 192.168.16.255

192.168.00010001.00000000/24 192.168.17.0 - 192.168.17.255

192.168.00010000.00000000/23 192.168.16.0 - 192.168.17.255


LESSON 2: CONFIGURING AN IPV4 HOST
Configurable IPv4 settings
Tools for configuring IPv4
Demonstration: Configuring IPv4
 Configuring IPv4 automatically
CONFIGURABLE IPV4 SETTINGS
CONFIGURABLE IPV4 SETTINGS
CONFIGURABLE IPV4 SETTINGS
TOOLS FOR CONFIGURING IPV4
TOOLS FOR CONFIGURING IPV4
TOOLS FOR CONFIGURING IPV4
TOOLS FOR CONFIGURING IPV4
TOOLS FOR CONFIGURING IPV4
TOOLS FOR CONFIGURING IPV4
Example using the netsh command-line tool:
Netsh interface ipv4 set address name="Local Area
Connection" source=static addr=10.10.0.10
mask=255.255.255.0 gateway=10.10.0.1
Netsh interface ipv4 set dns name=”Local Area
Connection” source=static addr=10.12.0.1

Netsh interface ipv4 add dns name=”Local Area


Connection” 10.12.0.2 index=2

Examples using Windows PowerShell cmdlets:


New-NetIPAddress –InterfaceAlias “Local Area
Connection” –IPAddress 10.10.0.10
‑PrefixLength 24 –DefaultGateway 10.10.0.1

Set-DNSClientServerAddresses –InterfaceAlias “Local


Area Connection”
–ServerAddresses 10.12.0.1,10.12.0.2
DEMONSTRATION: CONFIGURING IPV4
In this demonstration, you will see how to
configure IPv4 by using:
• The user interface
• Windows PowerShell
CONFIGURING IPV4 AUTOMATICALLY

DHCP Server with IPv4 DHCP Client


IPv4 Scope

An APIPA address on an interface indicates that a


DHCP server could not be contacted

Code example:
Set-NetIPInterface –InterfaceAlias "Local Area
Connection" –Dhcp Enabled
Restart-NetAdapter –Name "Local Area Connection"
LESSON 3: MANAGING AND TROUBLESHOOTING
IPV4 NETWORK CONNECTIVITY

Routing between IPv4 networks


Modifying IPv4 routing
IPv4 troubleshooting methodology
Tools for troubleshooting IPv4
Demonstration: Troubleshooting IPv4
What is Microsoft Message Analyzer?
 Demonstration: Using Microsoft Message Analyzer
ROUTING BETWEEN IPV4 NETWORKS
• IPv4 subnets are typically separated by a router
• The router is responsible for handling incoming and
outgoing IPv4 traffic, and delivering the IPv4 traffic to its
intended destination
• Routers send traffic to destinations based on a set of data
called routing tables
• Routing tables contain the following information about a
route for a specific interface:
• Network destination
• Netmask
• Gateway
• Interface
• Metric
MODIFYING IPV4 ROUTING
You can use several methods to view and modify
the routing table:

• The Route command


route add 10.0.0.0 netmask 255.0.0.0 192.168.0.1

• Get-NetRoute, New-NetRoute, and Set-NetRoute


Windows PowerShell cmdlets
Get-NetRoute –AddressFamily IPv4

• The Routing and Remote Access console


TOOLS FOR TROUBLESHOOTING IPV4
Use the following tools to troubleshoot IPv4:
• Ipconfig
• Ping
• Tracert
• Pathping
• Telnet
• Netstat
• Resource Monitor
• Windows Network Diagnostics
• Event Viewer
TOOLS FOR TROUBLESHOOTING IPV4
Many PowerShell commands are similar to
traditional command line tools
• To check the network configuration:
• Windows PowerShell: Get-NetIPAddress
• Command-line: ipconfig

• To check routing:
• Windows PowerShell: Test-NetConnection –TraceRoute
• Command-line: tracert

• To check for a response:


• Windows PowerShell: Test-NetConnection
• Command-line: ping
DEMONSTRATION: TROUBLESHOOTING
IPV4

In this demonstration, you will see how to


troubleshoot IPv4 by using:
• Windows PowerShell
• The command line
WHAT IS MICROSOFT MESSAGE ANALYZER?
You can use Microsoft Message Analyzer to perform
the following network analysis tasks:
Capture
message
data

Save Import View Filter Create


message message message message charts
data data data data from
captured
data
DEMONSTRATION: USING MICROSOFT MESSAGE ANALYZER

In this demonstration, you will see how to:


• Start a new Capture/Trace in Microsoft
Message Analyzer
• Capture packets from a Test-NetConnection
request
• Analyze the captured network traffic
• Filter the network traffic

You might also like