Sharing Internet access

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

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."

a, more than two LAN PC, Internet access for broadband access


1. The network structure diagram is as follows

Description: The gateway host is equipped with two network cards, of which the network card A1 passes the broadband mode such as ADSL, Cable Modem or Ethernet port (multiple appearance in broadband residential community, intelligent commercial building and campus network). To access the Internet, the network card A2 is connected to a hub or switch, and is in the same local area network as PC1 and 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.
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,

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 can be changed, according to the specific requirements of users of this LAN, but in this case we do not modify, 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 confirming, you can open the Internet and you can access the Internet. Of course, the gateway host is 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 : (Take the gateway host as an example) Right click on "Local Area Connection 1" -> "Properties" -> "Advanced" -> "Settings", check "Remote Desktop",


Enter the IP address or computer name of the machine to be logged in by the expert. Press "OK" three times to complete, and the expert can log in to any PC in the LAN through the firewall.


The same method can control whether the LAN service or FTP service of the LAN can be opened to the outside world, as long as the different services are selected as before.
Second, there are only two PCs in the LAN. , Internet access as an ordinary telephone dial

1. The network structure diagram is as follows


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 connecting to the LAN. The setting of that NIC.

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 Solution

Copyright © Windows knowledge All Rights Reserved