In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to set up the Windows gateway". In the daily operation, I believe many people have doubts about how to set up the Windows gateway. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to set up the Windows gateway". Next, please follow the editor to study!
The gateway implements network interconnection above the network layer, which is only used for the interconnection of two networks with different high-level protocols, and can be regarded as a translator. Unlike the bridge which simply conveys information, the gateway needs to repackage the received information to meet the needs of the destination system.
Due to historical reasons, many literatures about TCP/IP once referred to the router used in the network layer as the gateway. Today, many Lans use routing to access the network, so the gateway usually refers to the IP of the router!
A gateway is essentially an IP address from one network to other networks. For example, there are network An and network B. the IP address range of network An is "192.168.1.1" 192. 168.1.254 "with a subnet mask of 255.255.255.0, and the IP address range of network B is" 192.168.2.1 "192.168.2.254" with a subnet mask of 255.255.255.0. Without a router, there is no TCP/IP communication between the two networks. Even if the two networks are connected to the same switch (or hub), the TCP/IP protocol will determine that the hosts in the two networks are in different networks according to the subnet mask (255.255.255.0). In order to realize the communication between the two networks, it must be through the gateway. If the host in network A finds that the destination host of the packet is not in the local network, it forwards the packet to its own gateway, which forwards it to the gateway of network B. the gateway of network B then forwards it to a host of network B (as shown in the attached figure). The process by which network A forwards packets to network B.
Therefore, only by setting the IP address of the gateway can TCP/IP protocol realize the communication between different networks. So which machine's IP address is this IP address? The IP address of the gateway is the IP address of the device with routing function. The devices with routing function include router, server with routing protocol enabled (essentially equivalent to a router), proxy server (also equivalent to a router).
The default gateway of a computer cannot be casually specified, but must be specified correctly, otherwise a computer will send a packet to a computer that is not a gateway, thus unable to communicate with computers on other networks. The default gateway can be set manually and automatically.
I. manual setting
1) Manual setting is suitable for situations where the number of computers is relatively small and the TCP/IP parameters are basically unchanged, such as only a few to a dozen computers. Because this method needs to set up a "default gateway" on every computer connected to the network, it is very laborious. Once the IP address of the default gateway has to be modified because of migration and other reasons, it will bring great trouble to the network manager, so it is not recommended.
2) in Windows, the way to set the default gateway is to right-click on "Network neighbors", click "Properties" in the pop-up menu, select "TCP/IP Protocol" in the network properties dialog box, click "Properties", and fill in the IP address of the new default gateway in the "default Gateway" tab.
3) it should be noted that the default gateway must be the IP address in the network segment where the computer is located, but not the IP address in other network segments.
Second, automatic setting
1) automatic setup is the use of DHCP servers to automatically assign IP addresses, subnet masks and default gateways to computers in the network. The advantage of this is that once the default gateway of the network changes, as long as you change the setting of the default gateway in the DHCP server, all computers in the network will get the IP address of the new default gateway. This method is suitable for networks with large network scale and possible change of TCP/IP parameters.
2) another way to obtain the gateway automatically is by installing the client program of proxy server software (such as MS Proxy), which is similar to DHCP in principle and method.
At this point, the study on "how to set up the Windows gateway" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.