The difference between gateway IP address and IP address _ip

Source: Internet
Author: User

Gateway, we all know, from one room to another room, must go through a door. Similarly, sending a message from one network to another must pass through a "gateway", which is gateways. The gateway, as its name suggests, is a "gateway" to a network connected to another network.

According to different classification criteria, there are many kinds of gateways. The gateway in the TCP/IP protocol is the most commonly used, where we speak of "gateways" that refer to the TCP/IP protocol gateway. So what exactly is a gateway?

A gateway is essentially a network IP address that leads to other networks. For example, network A and network B, network A's IP address range is "192.168.1.1~192." 168.1.254 ", the subnet mask is 255.255.255.0, the IP address range of network B is" 192.168.2.1~192.168.2.254 "and the subnet mask is 255.255.255.0. In the absence of a router, TCP/IP traffic is not possible between two networks, even if the two networks are connected to the same switch (or hub), and the TCP/IP protocol determines that the hosts in the two networks are in different networks based on the subnet mask (255.255.255.0). To achieve communication between the two networks, you must pass through the gateway. If the host in Network a discovers that the destination host of the packet is not on the local network, the packet is forwarded to its own gateway, and then the gateway is forwarded to Network B's gateway, and Network B's gateway is forwarded to a host of network B (as shown in the attached figure). The process by which network B forwards packets to network A. Therefore, only if the IP address of the gateway is set up, TCP/IP protocol can realize the communication between different networks. So the IP address is the IP address of which machine. The IP address of the gateway is the IP address of the device with the routing capability, and the device with the routing capability has a router, a server with a routing protocol enabled (essentially the equivalent of a router), a proxy server (also equivalent to a router).

What is an IP address. An IP address is a 32bit address assigned to each host connected to the Internet. According to the TCP/IP (Transport control protocol/internet Protocol, Transmission Control Protocol/internet Protocols) protocol, the IP address is represented by binary, each IP address is 32bit long and the bit is converted to bytes. is 4 bytes. For example, a binary form of IP address is "00001010000000000000000000000001", such a long address, people to deal with too much effort. To facilitate the use of people, IP addresses are often written in decimal form, using the symbol "." In the middle. Separates different bytes. As a result, the IP address above can be expressed as "10.0.0.1". This notation for IP addresses is called dotted decimal notation, which is clearly much easier to remember than 1 and 0. Some people would think that a computer can only have one IP address, this view is wrong. We can specify that a computer has more than one IP address, so when accessing the Internet, do not assume that an IP address is a computer; In addition, through specific technology, you can make multiple servers share an IP address, these servers in the user looks like a host.

In the win operating system, win+r, in the Black window Input command: cmd/k ipconfig/all carriage return, you can see the IP and gateway set up by your computer



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.