Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Networking Fundamentals

You're reading from   Networking Fundamentals Develop the networking skills required to pass the Microsoft MTA Networking Fundamentals Exam 98-366

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781838643508
Length 510 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gordon Davies Gordon Davies
Author Profile Icon Gordon Davies
Gordon Davies
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Section 1: Network Infrastructure FREE CHAPTER
2. Differentiating between Internets, Intranets, and Extranets 3. Understanding Local Area Networks 4. Understanding Wide Area Networks 5. Understanding Wireless Networking 6. Network Topologies - Mapping It All Out 7. Section 2: Network Hardware
8. Switches and Switching - Forwarding Traffic on a Local Network 9. Routers and Routing - Beyond a Single Network 10. Media Types - Connecting Everything Together 11. Section 3: Protocols and Services
12. Understanding the OSI Model 13. Understanding TCP/IP 14. Understanding IPv4 15. Understanding IPv6 16. Understanding Name Resolution 17. Network Services 18. Section 4: Mock Exams
19. Mock Exam 1
20. Mock Exam 2
21. Assessments 22. Other Books You May Enjoy

Assigning IP addresses to hosts

It is imperative that, when planning your network, you know which IP addresses can be given out to a host. Once you have identified the network address and broadcast address on a network, you can issue an IP address that sits between them to a host device.

Therefore, the first IP address you can issue to a host is the one immediately following the network address. The last IP address you can issue to a host is the one immediately before the broadcast address.

An IP address can either be assigned manually by an administrator or dynamically through Dynamic Host Configuration Protocol (DHCP). We will talk about DHCP in more detail in Chapter 14, Network Services.

Manually assigning an IP address to a Windows computer involves adjusting the IPv4 properties of the NIC itself. Since a device can have more than one NIC, ensure you are configuring the right one. Let's walk through configuring an IP address manually:

  1. From Control Panel, select Network and Internet:
Figure 11.25: Control Panel
  1. Then, select Network and Sharing Center:
Figure 11.26: Network and Internet tab
  1. Select Change adapter settings on the left:
Figure 11.27: Network and Sharing Center

  1. This will present you with adapters you have installed on your device. Note that, on my laptop, I have Bluetooth, a wired connection, and a Wi-Fi connection:
Figure 11.28: Adapters installed on your device
  1. Right-click on the adapter you want to configure and choose Properties:
Figure 11.29: Right-clicking the adapter
  1. Then, either double-click on Internet Protocol Version 4 (TCP/IPv4) or select it and choose Properties:
Figure 11.30: Configuration options
  1. By default, your adapter will be set to obtain an IP address automatically. Note that not only is it getting the IP address automatically but it will also be given a default gateway and DNS settings automatically:
Figure 11.31: IPv4 properties
  1. If you prefer, you can configure the adapter so that it has manual DNS settings:
Figure 11.32: Configuring the adapter so that it has manual DNS settings
  1. You may have noticed that, while you were obtaining an IP address, there was an Alternate Configuration tab. Clicking on it provides us with the option shown in the following screenshot:
Figure 11.33: Alternate Configuration tab

This tab details what the computer should do if it cannot obtain an IP address automatically. By default, it will be provided with an Automatic Private IP Addressing (APIPA) address, which always starts with 169.254.x.x. However, you can choose the User configured option to provide it with a static IP address. The latter option is ideal if you use your computer in multiple locations, and in one of those locations you don't have the ability to obtain an IP address automatically. For example, at work, you may want to get an IP address automatically, but at home, you may want a static address.

  1. If you want to have a static address, select Use the following IP address and enter the required details. Note when doing this that, once you enter the IP address, the subnet mask field auto-populates with a classful subnet mask. Remember to change this as appropriate. Also, the option to obtain DNS server details automatically is no longer available. On selecting this option the Alternate Configuration tab will disappear instantly:
Figure 11.34: Alternate Configuration tab no longer visible
When I first starting configuring IP addresses here, I always had the habit of hitting Tab on my keyboard to try to move from one octet to the next. This doesn't work and will take you to the next field in the dialog box. To move from one octet to the next, press . after entering the octet value. This will move you to the next octet.
  1. Fill in the remainder of the details as appropriate. Note that there is an Validate settings upon exit option. This checks whether your settings are correct and will provide an error message if they're not:
Figure 11.35: Validate settings upon exit option at the bottom
  1. By clicking on the Advanced... button, you are provided with granular control. From here, you can add additional IP addresses and default gateways, and configure a routing metric value:
Figure 11.36: Advanced TCP/IP Settings
  1. Clicking on the DNS tab allows us to configure additional DNS settings, including configuring the order DNS servers are queried in. We will discuss DNS in more detail in Chapter 14, Network Services:
Figure 11.37: DNS tab
  1. Clicking on the WINS tab will provide us with the option to configure the Windows Internet Name Service (WINS) settings. Again, this will be discussed in more detail in Chapter 14, Network Services:
Figure 11.38: WINS tab
  1. Once you have configured the IP address either automatically or statically and clicked on OK, your computer will send out an ARP request, querying if anyone has that IP address already.
If a device does have that particular IP address, you will get an error message advising either a duplicate IP or IP address conflict. You will need to investigate this further with your network administrator.

Sometimes, you may find that you have problems with the IP address that's been issued by DHCP. You can ask your computer to either release the IP address or renew the IP address from the command line using ipconfig /release and ipconfig /renew, respectively. Release gives up the IP address and doesn't attempt to get a new IP address; renew also releases the IP address but attempts to obtain an IP address again.

I sometimes find using renew actually fails, but there is no indication if it has failed when it releases the IP address or when it obtains the new IP address. With that in mind, I tend to run release first and then run renew. Yes, I am releasing twice, but I know that if the first command fails, the problem is likely to be on my device. I just want to reiterate that the two commands are for DHCP addresses only. If you have a static IP address, they will not work.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image