The gateway generally refers to the address of the router, and the IP address is the address of the computer on the network. The relationship between the IP address and the gateway is: the gateway address is automatically divided into multiple IP addresses through the router; the gateway address is always in the same network segment as your computer's IP address.
Default gateway, the default selected export for data packets! Usually this is your router address.
The IP address is a 32-bit address assigned to each host connected to the Internet. According to the TCP/IP protocol, IP addresses are represented in binary. Each IP address is 32 bits long. When bits are converted into bytes, they are 4 bytes.
Relationship: The gateway address is automatically divided into multiple IP addresses through the router; the gateway address is always in the same network segment as your computer's IP address.
For example: There is a router and three computers in your office. The three computers are connected to the three interfaces of the router through three network cables.
The gateway address and computer IP address can be checked from the computer, as shown in the picture
More related knowledge , please visit: PHP中文网!
The above is the detailed content of What is the relationship between ip address and gateway?. For more information, please follow other related articles on the PHP Chinese website!