IP address, subnet mask, default gateway, what does the DNS server mean? IP address, subnet mask, default gateway, what does the DNS server mean?
(a) problem analysis
001. Q: IP address, subnet mask, default gateway, DNS server, what is the difference?I know that there is no IP address on the Internet, I also know that no DNS can not Sisu network, but what are the differences between the functions they have? Also really strange, my computer did not set DNS, unexpectedly can on QQ, but can't open the webpage, this is why >
A: IP is a 32-bit binary data, usually in decimal notation, with "." Separated. IP address is a logical address used to identify a host in the network, IP is unique, that is, the IP of each machine is the only one in the world.
DNS is a domain name server, used to resolve the domain name (domain and IP resolution), if there is no such thing, you have to enter the site's IP address, with the DNS, you can directly enter the URL.
Because QQ does not need to have DNS (QQ is just a client program, with no DNS), only browse the Web page (need to enter the URL) only use the DNS.
(ii) DNS server
DNSRefers to the domain name server. On the internet between the domain name and IP address is one by one corresponding to the domain name, although convenient for people to remember, but the machine can only know each other IP address, the conversion between them is called Domain name resolution, domain name resolution needs to be dedicated domain name resolution server to complete, DNS is the server for domain name resolution. (See Cultural Foundation P242)
(iii) IP address
To achieve network communication between computers, it is necessary to have a legitimate IP address.IP address = Network address + host address, (also known as: Host number and network number)The structure of IP addresses makes it easy to address on the Internet. The IP address is usually more intuitive, in dotted four decimal digits, each number from 0 to 255, such as the IP address of a host: 128.20.4.1in the LAN, also need IP address, the general intranet IP address is beginning with 192.168, so it is easy to distinguish between the public network and the IP address of the intranet。
Fully understand the meaning of IP address
Whether it's learning the Internet or surfing the Web, IP addresses are very high-frequency words. Windows system set the IP address of interface 1, the figure shows the IP address, subnet mask, default gateway and DNS server these need to set the place, only the correct settings, the network can pass, What do these nouns mean? Learn about IP address knowledge when you will also encounter network address, broadcast address, subnet and other concepts, what do these mean?
Figure 1
To answer these questions, take a look at an example of everyday life. 2, the residents in North Street should be able to find each other, must each have a number, the house number is the address of the home, the method is: North Street +xx. If the number 1th tenants are looking for the number 6th, the process is like this, Number 1th shouted in the street: "Who is number 6th, please answer.", then the residents of North Street heard, but only 6th answered, this shouting process called "Radio",all the users of North Street are his broadcast range,If there are 20 users in North Street, the broadcast address is: 21st North Street. That is to say, any user of North Street will be able to make a "broadcast address-1" user hear.
Figure 2
The following words can be drawn from this example:
Street Address: North Street, if you give the street an address to the first tenant's address-1, this example: North Street, No. No. 0
Number of tenants: such as Number 1th, No. 2nd, etc.
Address of the household: street address +xx, such as 1th North Street, 2nd North Street, etc.
broadcast address: Last tenant's address +1, this example is: No. 21st North Street
Internet network, each Internet computer has an address like the above example, this address is the IP address, is assigned to the network device number, in order to network computers can access each other, IP address = Network address + host address, the IP address in Figure 1 is 192.168.100.1 , this address contains a lot of meaning. As shown below:
Network address (equivalent to street address): 192.168.100.0
Host address (equivalent to the door number of each household): 0.0.0.1
IP address (equivalent to household address): Network address + host address =192.168.100.1
Broadcast address: 192.168.100.255
How are these addresses calculated? Why calculate these addresses? To know how, first to understand a truth, the purpose of learning Network is how to make the network of computers communicate with each other, that is, around the word "tong" to learn and understand the concept of the network, rather than just back a few nouns.
Note: 192.168.100.1 is a private address that cannot be applied directly to an Internet network, and the Internet is converted to a public address, as detailed below.
One, why calculate network address
The bottom line is that the computers in the network can communicate with each other. First look at the simplest network, Figure 3 is to use a network cable (crossover) directly connect two computers. Here are several IP address settings to see if the network is on or off in different settings.
1, set the IP address of machine number 1th to 192.168.0.1 the IP address of the subnet mask to 255.255.255.0,2 is 192.168.0.200 The subnet mask is 255.255.255.0, and this computer will be able to communicate normally.
2, if the address of the number 1th is unchanged, the IP address of the 2nd machine is changed to 192.168.1.200 subnet Mask or 255.255.255.0, then the two will not be able to communicate.
3, set the IP address of machine number 1th to 192.168.0.1 the IP address of the subnet mask to 255.255.255.192,2 is 192.168.0.200 subnet Mask is 255.255.255.192, notice that the 1th case differs in the subnet mask, 1 is 255.255.255.0 This example is 255.255.255.192. This computer will not be able to communicate properly.
Figure 3
The 1th situation can pass because the two computers are in the same network 192.168.0.0, so can pass, and 2, 3 cases two computers in different networks, so it does not pass.
Here is a conclusion: the computer with a direct connection to the network cable or through the hub (hub) or the ordinary switch between the computer to be able to communicate with each other, the computer must be on the same network, that is, their network address must be the same, And the host address must be different. If it is not a network will not be able to pass. This is like the example we cited above, the same as the North Street tenants because the street names are North Street, and their respective number, so they can find each other.Computing Network address is to determine the network in the computer is not the same network, in can pass, not on theNote that this is not the same network that is referring to the IP address and not the physical connection. So how do you calculate it?
two, how to calculate the network address (subnet mask)
Our daily life address such as: 1th North Street, literally can see Street address is North Street, and we from the IP address is difficult to see the network address, to calculate network address, we must rely on the above mentionedSubnet mask.
The calculation process is the same, the IP address and subnet mask are converted to binary, and then proceed with the operation, the result is the network address. With the operation as shown below, upper and lower alignment, 1-bit 1-bit calculation, 1 and 1=1, the remaining combinations are 0
Figure 4
For example: The computed IP address is: The 202.99.160.50 subnet mask is a 255.255.255.0 network address step as follows:
1) Convert IP address and subnet mask to binary separately
202.99.160.50 converted into binary for 11001010 01100011 10100000 00110010
255.255.255.0 converted into binary for 11111111 11111111 11111111 00000000
2) perform and compute the two
Figure 5
3) Convert the result of the operation into decimal, which is the network address.
11001010 01100011 10100000 00000000 converted into decimal is 202.99.160.0
Now we can solve the problem of the above three kinds of situations and not pass.
1, from the following results can be seen two computers network address is 192.168.0.0 and IP address is different, so can pass.
Figure 6
2, the network address of Machine 1th is 192.168.0.0, from can see the network address of Machine 2nd is 192.168.1.0, the two is not a network, so does not pass.
Figure 7
3, from the results can be seen from the 1th Machine network address for the 192.168.0.0,2 number machine network address is 192.168.0.192 not a network, so it does not pass
Figure 8
Believe you see this should understand why compute the network address and how to calculate it.
Thank you netizens: Listen to the rain HTTP://NEW.QZONE.QQ.COM/649329690/BLOG/9
(d) Subnet mask
A subnet mask is a basis for determining whether the IP addresses of any two computers belong to the same subnet. The simplest understanding is that the two computer's respective IP address and subnet mask after the and operation, the result is the same, then the two computers are on the same sub-network, you can make direct communication. (Specific subnet mask what you mean to add.) )
(v) Default gateway
What is the default gateway?
If you know what a gateway is, the default gateway is understandable. It's like a room can have more than one door, a host can have multiple gateways. The default gateway means that if a host cannot find an available gateway, it sends the packet to the default designated gateway, which handles the packet. The gateway used by the host is now generally referred to as the default gateway. (The Concept of Cultural Foundation P222 Gateway)
How to set the default gateway
The default gateway for a computer cannot be specified casually and must be specified correctly, or a computer will send the packet to a computer that is not a gateway, so that it cannot communicate with other computers on the network.The default gateway is set up manually and automatically in two different ways.
1. Manual Setup
Manually set the appropriatefor fewer computers, the TCP/IP parameters are basically the same, such as only a few to more than 10 computers. Because this method needs to set the "default gateway" on each computer in the network, it is very laborious, if the IP address of the default gateway must be modified because of the migration and so on, it will cause great trouble to the network management, so it is not recommended.
In Windows 9x, the way to set the default gateway is to right-click on "My Network Places", click "Properties" in the pop-up menu, select "TCP/IP protocol" in the Net Properties dialog box, click on "Properties", and in the "Default Gateway" tab, fill in the IP address of the new default gateway.
It is important to note that the default gateway must be the IP address in the computer's own network segment, not the IP address in other network segments.
2. Automatic Setup
Automatic Setup is the use ofDHCP (Dynamic Host configuration Protocol) serverThe computer from the network is assigned an IP address, subnet mask, and default gateway. The advantage of this is that once the default gateway for the network changes, all computers in the network get the IP address of the new default gateway as long as the settings for the default gateway in the DHCP server are changed. This method is suitable for networks with large network size and possible changes of TCP/IP parameters. Another way to automatically obtain a gateway is by installing Proxy Server software (such as MS Proxy) of the client program to automatically obtain, its principle and method and DHCP have similarities. As space is limited, it is no longer detailed
Original address: http://vod.sjtu.edu.cn/help/Article_Print.asp?ArticleID=584
Http://www.cnblogs.com/songQQ/archive/2009/05/27/1490612.html
IP address, subnet mask, default gateway, what does the DNS server mean?