Module 4 Networking
Module 4 Networking
Describe IPv4.
Describe IPv4 subnets.
Explain the difference between public and private IPv4 addressing.
Implement automatic IPv4 address allocation.
Describe the tools available to configure network settings in Windows 10.
Describe the tools available to troubleshoot network connections.
Configure an IPv4 network connection.
Describe IPv6.
Explain IPv6 addressing.
The Windows client network settings can be found in the Windows Setting App, under Network &
Internet.
Alternatively, you can select on the network connection icon on the right side of the taskbar, and then
select Network & Internet Settings
By default, you will see the Network Status page, which will indicate your current connection state.
You’ll also notice additional sub-menus on the left side, such as Wi-Fi, Airplane mode, Data usage, VPN,
Dial-up, Ethernet, and Proxy.
These are the various methods available for connecting to a network – and will vary depending on what
type of connections the individual device will support.
o To configure network connectivity, you must be familiar with IPv4 addresses and how they work.
o Communication between computers can happen only if they can identify each other on the
network.
o When you assign a unique IPv4 address to each networked computer, the IPv4 address identifies the
computer to the other computers on the network.
o That IPv4 address, combined with the subnet mask, identifies the computer’s location on the
network, just as the combination of a number and a street name identify the location of a house.
o In a typical situation, communication starts with a request to connect to another host by its
computer name.
o However, to communicate, the requesting host needs to know the media access control (MAC)
address of the receiving host’s network interface.
o Conversely, the receiving host needs to know the requesting host’s MAC address.
o Once the requesting host discovers the MAC information, it caches it locally.
o A MAC address is a hard-coded, unique identifier assigned to network interfaces by the
manufacturers of network adapters.
o Before the requesting host can find the receiving host’s MAC address, a number of steps occur.
o The following is a high-level overview of these steps:
o A host sends a request to connect to Server.
o The name Server1 must be resolved to an IPv4 address.
o Once the sender knows the recipient’s IPv4 address, it uses the subnet mask to determine
whether the IPv4 address is remote or on the local subnet.
o If it is local, an Address Resolution Protocol (ARP) request is broadcast on the local subnet.
o If it is remote, an ARP request is sent to the default gateway and then routed to the correct
subnet.
o The host that owns that IPv4 address will respond with its MAC address and a request for
the sender’s MAC address.
o Once the exchange of MAC addresses completes, IPv4 communication negotiation and the
exchange of IP data packets can occur.
Defining Subnets
- A subnet is a network segment.
- Single or multiple routers separate the subnet from the rest of the network.
- When your Internet service provider (ISP) assigns a network to a Class A, B, or C address range, you
often must subdivide the range to match the network’s physical layout.
- Subdividing enables you to break a large network into smaller, logical subnets.
- When you subdivide a network into subnets, you must create a unique ID for each subnet, which
you derive from the main network ID.
- To create subnets, you must allocate some of the bits in the host ID to the network ID.
- By doing so, you can create more networks.
- A subnet defines which part of the IPv4 address is the Network ID and which part is the host id
- By using subnets, you can:
o Use a single Class A, B, or C network across multiple physical locations.
o Reduce network congestion by segmenting traffic and reducing broadcasts on each
segment.
o Overcome the limitations of current technologies, such as exceeding the maximum
number of hosts that each segment can have.
- A subnet mask specifies which part of an IPv4 address is the network ID and which is the host ID.
- A subnet mask has four octets, similar to an IPv4 address.
Static configuration
- You can configure static IPv4 configuration manually for each of your network’s computers.
- When you perform IPv4 configuration, you must configure the:
o IPv4 address
o Subnet mask
o Default gateway
o Domain Name System (DNS) server
- Static configuration requires that you visit each computer and input the IPv4 configuration.
- This method of computer management is time-consuming if your network has more than 10 to 12
computers.
- Additionally, making a large number of manual configurations heightens the risk of mistakes.
DHCPv4
- DHCPv4 enables you to assign IPv4 configurations automatically for a large number of computers
without having to assign each one individually.
- The DHCP service receives requests for IPv4 configuration from computers that you configure to
obtain an IPv4 address automatically.
- It also assigns IPv4 information from scopes that you define for each of your network’s subnets.
- The DHCP service identifies the subnet from which the request originated, and assigns IP
configuration from the relevant scope.
- DHCP helps simplify the IP configuration process.
- However, keep in mind that if you use DHCP to assign IPv4 information and the service is business-
critical, you must:
o Include resilience in your DHCP service design so that the failure of a single server does not
prevent the service from functioning.
o Configure the scopes on the DHCP server carefully.
- If you make a mistake, it can affect the whole network, and it can prevent communication.
- If you use a laptop to connect to multiple networks, such as networks at work and at home, each
network might require a different IP configuration.
- Windows 10 supports the use of Automatic Private IP Addressing (APIPA) and an alternate static IP
address for this scenario.
- When you configure Windows 10 devices to obtain IPv4 addresses from DHCP, use the Alternate
Configuration tab to control the behavior if a DHCP server is not available.
- By default, Windows 10 uses APIPA to assign itself an IP address automatically from the 169.254.0.0
to 169.254.255.255 address range.
- This enables you to use a DHCP server at a location with DHCP and the need for internet access and
the APIPA address range a location without DHCP but the need to communicate between computers
(such as a workgroup), without reconfiguring IP settings.
- Additionally, this is useful for troubleshooting DHCP.
- If the computer has an address from the APIPA range, it is an indication that the computer cannot
communicate with a DHCP server.
- In addition to the Network and Settings section in Settings, you can configure network settings by
using a number of tools in Windows 10.
- The tool you decide to use depends on your situation and goals.
- Network Setup Wizard Windows 10 provides the Network Setup Wizard, a user-friendly
interface that you can use to configure network settings.
- Windows 10 recognizes any unconfigured network devices on the computer, and then automates
the process of adding and configuring them.
- The Network Setup Wizard also recognizes any wireless networks in range of the computer, and
then guides you through the process of configuring them.
- You can save network settings to a USB flash drive for use when configuring additional computers,
which makes that process quicker.
- You also can use the Network Setup Wizard to enable sharing across your network for documents,
photos, music, and other files.
Powershell Commands
Cmdlet Purpose
Get NetIPAddress Retrieves information about the IP address configuration.
Get NetIPv4Protocol Retrieves information about the IPv4 protocol configuration (the cmdlet
Get-NetIP6Protocol returns the same information for the IPv6 protocol).
Get NetIPInterface Obtains a list of interfaces and their configurations. This does not include
IPv4 configuration of the interface.
Set NetIPAddress Sets information about the IP address configuration. Set NetIPv4Protocol
Sets information about the IPv4 protocol configuration (the cmdlet Set-
NetIP6Protocol returns the same information for the IPv6 protocol.)
Set NetIPInterface Modifies IP interface properties. Get NetRoute Obtains the list of routes in
the local routing table.
Test-Connection Runs similar connectivity tests to that used by the Ping command. For
example, test-connection lon-dc1.
Resolve-Dnsname Provides a similar function to the NSLookup tool.
Get NetConnection Profile Obtains the type of network (public, private, or domain) to which a
network adapter is connected.
Clear-DnsClientCache Clears the client’s resolver cache, similar to the IPConfig /flushdns
command.
Get-DnsClient Retrieves configuration details specific to the different network interfaces
on a specified computer.
Get-DnsClientCache Retrieves the contents of the local DNS client cache, similar to the IPConfig
/displaydns command.
Get- Retrieves global DNS client settings, such as the suffix search list.
DnsClientGlobalSetting
Get- Retrieves one or more DNS server IP addresses associated with the
DnsClientServerAddress interfaces on the computer.
Register-DnsClient Registers all of the IP addresses on the computer onto the configured DNS
server.
- Event Viewer Event logs are files that record significant events on a computer, such as when a
process encounters an error.
- IP conflicts are reflected in the system log and might prevent services from starting.
- When these events occur, Windows records the event in an appropriate event log.
- You can use Event Viewer to read the log.
- When you troubleshoot errors on Windows 10, you can view the events in the event logs to
determine the cause of the problem.
- You can use Event Viewer to access the Application, Security, Setup, and System logs under the
Windows Logs node.
- When you select a log and then select an event, a preview pane under the event list contains details
of the specified event.
- To help diagnose network problems, look for errors or warnings related to network services in the
System log.
IPConfig
- The IPConfig command displays the current TCP/IP network configuration.
- Additionally, you can use IPConfig to refresh DHCP and DNS settings.
- For example, you might need to flush the DNS cache.
- The following table provides a brief description of some of the IPConfig command switches.
Command Description
ipconfig View detailed configuration information.
/all
ipconfig Release the leased configuration back to the DHCP server.
/release
ipconfig Renew the leased configuration.
/renew
ipconfig View the DNS resolver cache entries.
/displaydns
ipconfig Purge the DNS resolver cache.
/flushdns
ipconfig Register/update the client’s host name with the DNS server.
/registerdns
Ping You use the Ping command to verify IP-level connectivity to another TCP/IP
computer. This command sends and receives Internet Control Message
Protocol (ICMP) echo request messages, and displays the receipt of
corresponding echo reply messages. The Ping command is the primary TCP/IP
command used to troubleshoot connectivity. Note: Firewalls might block the
ICMP requests. As a result, you might receive false negatives when using Ping
as a troubleshooting tool.
Tracert The Tracert tool determines the path taken to a destination computer by
sending ICMP echo requests. The path displayed is the list of router interfaces
between a source and a destination. This tool also determines which router
has failed, and what the latency, or speed, is. These results might not be
accurate if the router is busy, because the router will assign the packets a low
priority.
Pathping The Pathping command traces a route through the network in a manner
similar to the Tracert tool. However, Pathping provides more detailed statistics
on the individual steps, or hops, through the network. The command can
provide greater detail because it sends 100 packets for each router, which
enables it to establish trends.
NSLookup The NSLookup tool displays information that you can use to diagnose the DNS
infrastructure. You can use the tool to confirm connection to the DNS server, in
addition to the existence of the required records. Windows
PowerShell You can use Windows PowerShell to configure network connection settings. In
addition to this, you can use Windows PowerShell cmdlets for troubleshooting
network settings
.
Benefits of IPv6
- The IPv6 protocol provides the following benefits:
- Large address space. Pv6 uses 128-bit address spaces, which can have
340,282,366,920,938,463,463,374,607,431,768,211,456 (or 3.4x10^38 or 340 undecillion)
possible addresses.
- Hierarchical addressing and routing infrastructure. The IPv6 address space is more efficient for
routers, which means that even though there are many more addresses, routers can process
data much more efficiently because of address optimization.
- Stateless and stateful address configuration. IPv6 has autoconfiguration capability without
DHCP, and it can discover router information so that hosts can access the Internet.
- This is a stateless address configuration.
- A stateful address configuration is when you use the DHCP version 6 (DHCPv6) protocol.
- Stateful configuration has two additional configuration levels: one in which DHCP provides all
the information, including the IP address and configuration settings, and another in which DHCP
provides just configuration settings.
- Required support for Internet Protocol security (IPsec). The IPv6 standards require support for
the Authentication Header (AH) and encapsulating security payload (ESP) headers that IPsec
defines. Although IPsec does not define support for its specific authentication methods and
cryptographic algorithms, IPsec is defined from the start as the way to protect IPv6 packets.
- Note: IPsec provides for authentication and, optionally, encryption for communications between
hosts.
- The global addressing model for IPv6 traffic means that translation between different types of
addresses is not necessary, such as the translation done by NAT devices for IPv4 traffic. This
simplifies communication because you do not need to u use NAT devices for peer-to-peer
applications, such as video conferencing.
- Prioritized delivery. IPv6 contains a field in the packet that lets network devices determine that
the packet processing should occur at a rate that you specify.
- This enables traffic prioritization. For example, when you are streaming video traffic, it is critical
that the packets arrive in a timely manner. You can set this field to ensure that network devices
determine that the packet delivery is time-sensitive.
- Support for single-subnet environments. IPv6 has much better support of automatic
configuration and operation on networks consisting of a single subnet.
- You can use this to create temporary, ad hoc networks through which you can connect and
share information.
- Extensibility. The design of IPv6 enables you to extend it with less constraint than IPv4.
IPv6 in Windows 10
- Windows 10 uses IPv6 by default.
- Windows 10 includes several features that support IPv6, as described below.
Windows 10 dual stack
- Windows 10 supports both IPv6 and IPv4 in a dual stack configuration. The dual IP stack helps
reduce maintenance costs by providing the following features:
- Shared transport and framing layer.
- Shared filtering for firewalls and IPsec.
- Consistent performance, security, and support for both IPv6 and IPv4.
- When you connect to a new network that advertises IPv6 routability, Windows 10 tests IPv6
connectivity, and it will only use IPv6 if IPv6 connectivity is actually functioning.
- Windows 10 also supports a functionality called address sorting.
- This functionality helps the Windows 10 operating system determine which protocol to use
when applications that support both IPv4 and IPv6 addresses are configured for both protocol
stacks.
- The Windows 10 operating system supports remote troubleshooting capabilities such as Windows
Remote Assistance and Remote Desktop.
- Remote Desktop enables administrators to connect to multiple Windows Server sessions for remote
administration purposes.
- You can use IPv6 addresses to make remote desktop connections.
- Windows Remote Assistance and Remote Desktop use the Remote Desktop Protocol to enable users
to access files on their office computers from other computers, such as their home computers.
Interface identifiers
- The last 64 bits of an IPv6 address are the interface identifier.
- This is equivalent to the host ID in an IPv4 address.
- Each interface on an IPv6 network must have a unique interface identifier.
- Because the interface identifier is unique to each interface, IPv6 uses interface identifiers rather
than MAC addresses to identify hosts uniquely.