Transcript for:
Understanding IPv4 Configuration Basics

if you're configuring ipv4 on a computer then you need to configure three very important addresses the first address is an ip address this is an address that uniquely identifies this device on the network if you look at your ip address and it's a number like 192.168.1.165 that is the unique address that nobody else on your network has this is how other devices will address or send information to your computer the second important configuration setting is the subnet mask this is a mask that commonly looks like 255.255.255.0 or some other combination of numbers that makes up the subnet mask this is a number that is used in conjunction with your ip address so that your device understands what ipsubnet it happens to live on this is important when you're trying to route outside of your local ipsubnet and you need to send information to a default gateway if your computer doesn't know what subnet it's on then it doesn't know what information should be communicated locally and what information should be sent to your default gateway so we make sure we configure our subnet mask so that your device knows exactly where this data should be sent and the third configuration setting that we need to put into our computer is that default gateway address in this example the default gateway is 192.168.1.1 this is an ip address that is on the same local subnet as your ip address because this is where you're going to be sending all of the traffic that needs to go outside of this local subnet if you're configuring these settings on a computer and you ask someone for the local gateway they're going to provide you with the default gateway ip address which is another device that happens to be on your local ipsubnet you will also very commonly configure an additional setting that's not listed here that's for your domain name system server or dns server we'll discuss dns configuration settings in a future video there are other ip addresses configured on your system that are sometimes used in special circumstances one of these is the loopback address this as the name implies is an address that references itself so if you send any traffic to a loopback address you're really sending that to your local machine the ipv4 address range for a loopback address is between 127.0.0.1 through 127.255.255.254. normally we just use the first ip address associated with that so if you wanted to ping your local loopback address you would ping 127.0.0.1 it may seem unusual that you would have a separate address that is referenced to your machine but this is a great way for your local computer to determine if the ip stack inside of your system is working properly you can perform that ping and if you get a response back from your system then that means that the ip stack is working properly if you ping that loopback address and you get no response from your local computer then there must be some problem with the tcpip stack inside of your operating system there's also a block of addresses that have been set aside as reserved addresses when we get into talking about classes of addresses these are class e addresses and they're in a range from 240.0.0.1 through 254.255.255.254. these reserved addresses should not be configured on a local machine or on anything on your production network and it would be unusual if you would ever run across a reserved address because everyone understands that these addresses should not be used and one special address you might find especially if you're working with routers or other devices with multiple ip addresses is a virtual ip address or a vip a virtual ip address is one that is assigned internal to your system but it's not assigned to a physical network adapter instead it's being assigned to a logical network adapter that only exists inside the software of your system these virtual ip addresses are commonly seen with virtual machines and you might also see vips used inside of routers so that there is always a static ip address that you can reference for that particular router configuration let's break apart this ipv4 address and really see how it's constructed this is our internet protocol version 4 address sometimes you might hear this dress referred to as an osi layer 3 address the addresses that we've been looking at previously are things that you might recognize for example here's an ip address of 192.168.1.131 but if you were to convert that decimal value into binary you would see that the ip address are four separate groups of eight bits apiece and you can see eight bits in the first group eight bits in the second eight bits in the third and lastly eight bits in that fourth group you might also see this referred to as a byte or an octet they are all exactly the same thing if you put four of those groups together then you have 32 bits or four bytes and that is what we use to define an ipv4 address we know from our binary math video that this combination of ones and zeros could be all zeros or it could be all ones and if we set all of those bits to one and then convert them back to decimal you'll find that the maximum value in any one of these groups is always going to be 255. if you're just getting into ip addressing you may realize that there's an entire set of addresses on your computer that you've never had to manually configure if you look at the configuration of the ip addresses on your computer you may see that they have been automatically assigned an ip address a subnet mask a gateway a dns server an ntp server and perhaps other settings as well we're able to automatically assign these ip addresses by using dhcp or dynamic host configuration protocol this is a protocol that takes a system that has not been configured with an ip address communicates over the network using this protocol and automatically ip addresses are assigned to a local device this obviously saves a lot of time for the network administrator because they don't have to go to each device manually to configure ip addresses instead a user simply turns on their computer it communicates automatically to a dhcp server and that device receives an ip address without any user intervention dhcp is a common way of automatically assigning ip addresses on both home networks and networks in the enterprise but there may be times when a dhcp server is not available and you may find that your device has been assigned an ip address but it wasn't assigned that ip address from a dhcp server in that case you were probably assigned an automatic private ip address or an ap ipa this is what we call a link local address because the ip address that's assigned to your computer is not able to communicate outside of your local subnet that means if you've been assigned an apipa address then you're not able to communicate out to the internet this means that if you've been assigned an apipa address you're not able to communicate to the internet because routers are not able to forward those ip addresses one way to tell if you've been assigned an ap ipa address is to simply look at the ip address and if this ip address is between the range of 169.250 through 169.254.255.254 then you've been assigned an ap ipa address this range is actually slightly smaller than this because the standard for ap ipa takes the first and last 256 addresses and assigns them as reserved so the actual range of ip addresses that can be assigned to a device is between 169.254.1.0 through 169.254.254.255. if a dhcp server is not available then this apipa assignment process begins your computer picks a random address in this particular range and then sends an arp to the network to see if anyone else may be currently using that ip address if there's no response to the arp then that address is free and it's assigned to that computer if you're ever working with a device and you see that it has been assigned an apipa address then you're probably connected to a network that doesn't have a dhcp server or the dhcp server on that network is no longer functioning you