XP operating system shared Internet completely Raiders

  
        "Internet Connection Sharing", which has appeared in Windows 98 (SE) /Me /2000, is now improved and enhanced in Windows XP, it allows multiple PCs in the LAN, through one of the PCs that have been connected to the Internet To connect to the Internet, so that multiple PCs share an Internet connection line to access the Internet, and provide firewall protection.

due to the realization of the network structure to share the Internet there are many, can not list them all, so in this selected two typical network structure to introduce Windows XP's "Internet Connection Sharing."

First, the LAN more than two PC, Internet access method for broadband access

1. The network structure diagram is as follows

Figure 1
Description: The gateway host is equipped with two network cards, of which network card A1 passes ADSL, Cable Modem or Ethernet port (more in broadband residential quarters, smart commercial buildings and campuses) The broadband access method is connected to the Internet, and the network card A2 is connected to the hub or the switch, and is in the same local area network as the PC1 and the PC2. PC1 and PC2 are each equipped with a network card connected to a hub or switch. In the local area network, the Internet is connected through the Internet connection of the shared gateway host. If a PC is added to the LAN, simply connect the new PC to a hub or switch and go online. FIG
two

2. Gateway host settings

The operating system is Windows XP, "Start" -> "Control Panel" -> "Network and Internet Connection" -> "Network Connection", you will see two network cards Connection icon.

"Local Area Connection 1" is the network card A1, which is connected to the Internet; "Local Area Connection 2" is the network card A2, which is connected to the local area network. The TCP/IP settings of "Local Area Connection 1" should be different depending on the broadband access method. You can obtain the IP address and DNS automatically, or you can configure a fixed IP address and DNS (provided to you by the ISP). According to the instructions provided by the ISP, it will not be detailed here.

Now we have to share this Internet connection, right click on "Local Area Connection 1" -> "Properties" -> "Advanced", "Internet Connection Firewall" and "Internet Connection Sharing" The three items are selected,

Figure 3
Press "OK", a dialog box will appear to change the TCP/IP settings of another network card, press "Yes".

This sharing is enabled, and the NIC icon becomes like this.

Now we look at the TCP/IP settings for "Local Area Connection 2", right click on "Local Area Connection 2"->"Properties"->"Internet Protocol (TCP/IP)"-> "Properties", see the IP address is set to 192.168.0.1 by the system.

this IP address is changed, according to the specific requirements of the user of this local area network may be, but in this case we do not make changes, press Cancel to exit this dialog box. The gateway host is set up and has shared the Internet connection and has a firewall function to protect all machines in the entire LAN from being illegally accessed.

3. Configuration of PC1 in LAN

The operating system can be any network operating system, in addition to the Windows series, it can be Linux or Unix. Just set the NIC's IP address, subnet mask, default gateway, and DNS. The IP address is set to the same subnet address as the gateway host network card A2, but it cannot be duplicated. The subnet mask is the same as that of the gateway host network card A2. The default gateway and DNS are set to the IP address of the gateway host's network card A2. If it is a Windows XP system, it can be set as shown below. After

Figure IV
OK, open IE to access the Internet, of course, the premise is the gateway host connected to the Internet.

4. Configuration of PC2 in LAN

The setting of PC2 is basically the same as that of PC1, except that the IP address is different. As the IP address of PC1 is 192.168.0.2, the IP address of PC2 can be set to 192.168.0.3, as long as it is The unused IP address in this subnet will do.

5. Firewall settings in the gateway host

If the gateway host has enabled the remote desktop (described in "Windows XP Remote Experience"), and the firewall is turned on, other online users on the Internet cannot log in to you remotely. System, but if you want an expert to remotely log in to any PC in the LAN (including the gateway host, this PC needs to have the function of remote desktop), to solve the problem for yourself, then follow the steps below : (just use the gateway host as an example) Right click on "Local Area Connection 1" -> "Properties" -> "Advanced" -> "Settings", check "Remote Desktop", enter to be logged in by experts The IP address or computer name of the machine is completed by pressing "OK" three times, and the expert can log in to any PC in the LAN through the firewall. The same method

, Web services can control the LAN or FTP services, whether the outside world, as long as I have just VGH different services can be.

Second, the LAN only two PC, Internet access method as an ordinary telephone dial

1. The network structure diagram is as follows
Figure 5
Description: The gateway host is connected to a normal modem connected to the telephone line, and is also equipped with a network card. PC1 is also equipped with a network card, and the two network cards are connected by crossover lines (there are many articles on the Internet that introduce cross-line practices) to form the simplest LAN. PC1 shares the Internet connection of the gateway host to access the Internet. This network structure is not suitable for expansion.

2. Gateway Host Settings

The operating system is Windows XP. Most modems will be automatically recognized and installed by the system. Let's build a new dial-up connection: "Start" -> "Control Panel" -> "Network and Internet Connection" -> "Network Connection "->"Create a new connection "->"Next"->"Connect to the Internet"->"Next"->"Manually set up my connection"->"Next" -> "Connect with a dial-up modem" -> "Next"-> Enter the ISP name: China Telecom 96169 -> "Next" -> Enter the dialed phone number, eg 96169->" Next "->Enter username and password->"Next"->"Complete". There is one more dialing icon in the network connection.

To share this Internet connection, just right click on the dial icon -> "Properties" -> "Advanced". The settings in the future are the same as those in Case 1, including the network card connected to the LAN. setting.

3. The configuration of the PC in the LAN

is the same as the setting of PC1 in Case 1. The settings for the firewall are as described above. As long as the gateway host dials up to the Internet, the mode of sharing the Internet with this small LAN can be operated.

With the popularity of broadband networks, the family set up a small LAN and share Internet connection resources to the Internet model will be more and more, Windows XP provides a cheap, safe for this mode, simplicity and ease of maintenance s solution.
Copyright © Windows knowledge All Rights Reserved