Use the method below to connect the two computers into a LAN first, and then connect one of the connecting ports. I hope it can help you
We need to know the biggest characteristics of the LAN It means that the best utilization of resources can be achieved, such as: shared disk devices, printers, etc., so that files can be called to each other within the established LAN and printed on any shared printer; of course, we can also You can use software such as Wingate or Sygate to enjoy the Internet access from one Modem across multiple machines; or connect to the Internet through a proxy server to enjoy extraordinary speeds. If you have more than one computer at home, and if you want to upgrade your computer game room to an Internet cafe, then you have to consider connecting them into a LAN.
Don’t think it’s difficult. In fact, if we just set up a small local area network, we only need to buy a few network cards and some data cables, and we can have enough food and clothing by ourselves. We know that Win98 has built-in point-to-point (pc to pc) network configuration capabilities, which makes it easy to establish a small network. If your LAN has many computers, then you need a mature network operating system to manage the network, such as WinNT, Netware or Linux, etc.
Serial and parallel port communication networking
If you just want to connect two PCs equipped with Windows series operating systems, we can directly use the serial and parallel ports of the computer to Communication cable (pc to pc), after connecting the two computers, select Microsoft's "Dial-up Network Adapter" in "Adapter" under "Control Panel/Network" in Windows and "IPX/SPX Compatible Protocol" in "Protocol" ” and “NetBEUI Protocol”. Then start the "Control Panel", select "Add/Remove Programs", click "Install Windows Programs", select "Communications", click "Direct Cable Connection", and then use the Windows installation disk to install. After installation, restart your computer. Select a computer as the host, right-click a drive (such as C drive) in the host's "My Computer", select "Maximum Sharing", and select the mass sharing level. Run "Direct Cable Connection" in the accessories of both machines. On the host machine, select the communication port used. Select another computer as the client, follow the prompts, wait a moment, and the connection is completed. Open "Network Neighborhood" on the "Client" desktop, and you will find that you are no longer alone. You can access your host through "Network Neighborhood", or you can map the network drive to yourself through the "Map Network Drive" method. Virtual physical drive, what's even better is that if the host you are connected to is already on the LAN, you can also access all online resources through the host. And when you visit, it does not affect the normal work of the host, which is especially beneficial to laptop users.
Network card communication and networking
When there are more than two computers (PC), you need to use network cards, network cables and hubs (HUB). If there is no network card in the LAN, it is like a river without bridges on both sides. Network card is the abbreviation of NIC (NETWORK Interface Card), which is one of the most basic components of a local area network. The network card is installed in the expansion slot of network computers and servers and serves as the physical interface between the computer and the network. Therefore, it can simply be said that the network card is a bridge for receiving and transmitting data. According to the transmission rate, network cards can be divided into: 10Mbps network card (ISA socket or PCI socket), 100Mbps PCI socket network card, 10Mbps/100Mbps adaptive network card and Gigabit network card. At present, the 10Mbps ISA socket network card still occupies a certain market share with its low price. However, due to the low network transmission rate of the 10Mbps ISA socket network card and occupying a large amount of CPU resources, it is only suitable for those LANs that do not have high speed requirements. I recommend using a 100Mbps PCI socket network card or a 10Mbps/100Mbps adaptive network card. It is not expensive and can be adapted to application environments with a large number of users, large amounts of data transmitted on the Internet, and multimedia information transmission.
When choosing a network cable, you must first look at the interface type of the network card you purchased. There are two types of network card interfaces (RJ45 and BNC): the BNC port uses a thin coaxial cable as the transmission medium. Network card interface. RJ45 is a network card interface that uses twisted pair cable as the transmission medium. The interface of RJ45 is similar to the interface of a telephone line, but the network cable uses an 8-core connector. The disadvantage of using RJ45 is that the installation cost is high, but installation and maintenance are more convenient. , so we generally use the RJ45 interface. Hub (HU): Depending on the number of microcomputers, HUB is used to form a star structure. When there are many workstations, the processing rate of HUB will be far lower than the transmission speed of the communication line, causing a bottleneck problem. Therefore, if conditions permit, Choose a switch. The domain formed by a Hub is called a collision domain. That is to say, when any computer on the network sends and receives data, all other computers can receive it, and these computers cannot send and receive data at the same time, otherwise it will happen. Collision (CSMA/CD protocol prevents collision).
In addition, each computer connected to the Hub must detect the destination address of the received data to confirm whether it has received its own communication information. Therefore, the computer CPU usage is high and the communication efficiency of the entire network is low. It is only suitable for small workgroup levels. application.
The functions of a hub HUB or switch:
(1) Each twisted pair interface is only connected to one workstation (network card), and signals are transmitted point-to-point.
(2) When a certain port receives a signal, HUB reshapes it and broadcasts it to every other port.
(3)HUB itself can automatically detect signal collisions and immediately send out a jam signal to notify other ports when a collision occurs.
(4) When the transmission line or network card of a certain port fails, the HUB automatically isolates the port so that it does not affect the normal operation of other ports. Because the current 100MB switch is very cheap, it is generally Choose a 100Mbps network card and a 100M switch.
The components required for the LAN are all ready. Now let’s follow me step by step to set up a LAN bar based on Windows2000 Professional, the most stable personal operating system at the moment.
Steps to connect to the LAN:
1. Install the network card. Turn off the computer, open the case, find a free PCI slot (usually a short white slot), insert the network card, and tighten the screws.
2. Connect the network cable. Plug one end of the network cable into the network card connector and the other end into the switch or HUB.
3. Install the network card driver. Turn on the computer and the operating system will detect the network card and prompt you to insert the driver disk. Insert the driver disk sold with the network card and click "Next". After Windows finds the driver, a confirmation screen will be displayed. Click "Next". If Windows does not find the driver, click the Browse button in the Device Driver Wizard to specify the location of the drive. If your driver is not the latest version, you can open "Device Management", run the "Update Device Driver Wizard", double-click "Network Adapter", then select your network card, select the "Driver" button, and click "Upgrade" Driver" button. Windows will prompt you to insert the Windows installation disk, just follow the prompts. You must also give each computer on the network a unique name and the same workgroup name (such as the default Workgroup) before restarting the computer. The specific operation is to right-click on the "My Computer" icon on the desktop and click "Properties". In the pop-up dialog box, click "Network Identification", then click "Properties", fill in the machine name you want to specify in the "Computer" name, fill in the unified workgroup name in the workgroup, and click OK to complete.
4. Install the necessary network protocols. Right-click on the "Network Neighborhood" icon on the desktop, click "Properties", right-click on the "Local Area Connection" icon, click "Install" in the pop-up properties dialog box, double-click "Protocol" to install "Internet Protocol (TCP)" /IP)", double-click "Client" to install "Microsoft Network Client", and restart the computer.
5. Realize network sharing. Right-click on the "Network Neighborhood" icon on the desktop, click "Properties", right-click on the "Local Area Connection" icon, click "Install" in the pop-up properties dialog box, double-click "Services" to install "Microsoft Network Files" "Shared with the printer", click "OK", these settings will not take effect until the computer is restarted. If you want to *share a drive or directory, open "My Computer" in the explorer or on the desktop, right-click the drive or directory you want to *share, select "***Share", and fill in the appropriate information. content. If you choose to share the entire drive, all directories under the drive are network shared. Open the "Network Neighborhood" icon to get a list of computers on the network. Double-click the computer you want to access to access the drive. To map a network drive, consult the Windows Help file. If you have problems accessing a printer or other computer over the network, please check your network cable connection to ensure that the connection and sharing settings are correct.
6. Set an optional startup password. When you start the computer for the first time after installing the network driver, a dialog box will pop up prompting you to enter the user and password of the Microsoft network. Type your username and it will automatically appear every time you start your computer (you can use the computer name specified in step three). If you do not want to set a password, leave the password line blank and click "OK", otherwise type in the password and confirm the password. If the entered password does not match the set password, the computer can run the operating system locally but cannot share resources online.
Haha. We have established a simple LAN based on Windows 2000 Professional. You can also use the above method to establish a LAN between your neighbors
1. Networking equipment Preparation
Here I assume that you have applied for ADSL broadband service from China Telecom and have it installed.
When setting up a private LAN, please check your ADSL Modem product description first. If it supports routing function, you can save money on purchasing a broadband router; otherwise, this equipment is essential;
In addition, another indispensable device is the switch, which is used as a transfer device for mutual communication between computers; in addition, each computer needs to be installed with a network card responsible for receiving data and urgent feedback. ?Lu Lu K, basically these things. And if you only have two computers, you don't have to go to such trouble. Just install a network card in each of the two computers and connect them with a network cable.
1. Broadband router
Broadband router has two functions, one is to connect different networks, and the other is to select the line for information transmission. It is the best way to enjoy broadband. The best solution for connectivity. With the advantages of easy use, easy management and zero maintenance, it has become the first choice device for Internet access.
Choosing a router is the same as choosing a computer. You must first look at the hardware. Hardware is the basis for the operation of the router. The hardware model is good and of high quality. The router not only has stable functions, but also can expand its functions. For example, the number of access computers, generally mid-to-high-end access routers can support 100 PCs, and in addition to IP sharing and routing functions, they also have firewall, time management, DMZ and other functions; another example is large-capacity memory and Flash memory can provide powerful processing capabilities for routers.
At present, there are many brands of this type of product on the market. You can ask your friends around you which brand has a good reputation in the local area. The more common ones are: D-LINK, TP-LINK, Aitai Technology, Cisco, 3Com, Huawei 3Com, etc.
2. Switch
Switch, the follow-up product of this hub, is incomparable to the former in terms of speed and functions. Its main function is to realize the interconnection and interoperability of multiple computers, which is equivalent to the role of the "middleman" mentioned earlier.
In today's home switch market, because the prices of switches of different brands and different port numbers vary greatly, when purchasing, you should choose based on your actual situation, such as the chosen networking method, Affordable price, brand, favorite switch appearance, etc. In addition, you must also pay attention to various performance indicators of the switch, such as the number of interfaces, etc. Generally speaking, 5-port and 8-port switches are the first choice.
3. Network card, network cable
The network card is also called NIC, which means Network Interface Card. Its function is to decompose the data into packets and then send them to network. Currently, there are mainly PCI interface network cards on the market.
On the other hand, what we usually call 10M network card, 100M network card, 10M/100M adaptive network card, etc. are mainly divided according to the network card connection speed. Based on the above, the most mature choice for home use today is the 10M/100M product with PCI interface. Laptops use PCMCIA interface network cards, which are much more expensive than PCI network cards on ordinary PCs. Generally, PCI network cards can be purchased for tens of dollars, while PCMCIA usually costs 1 or 2 hundred.
As for the network cable, I didn’t pay too much attention to it. Generally, you choose Category 5e twisted pair cable. When you buy it, the merchant will make the connector for you according to your network type, so don't worry. The price of network cable is measured by length, generally 1.5 yuan/meter.
PCI network card (ordinary desktop)
PCMCIA network card (notebook)
3. About the connection of the device
We have already understood it before Learn what equipment is needed to build such a network, as well as the common sense for purchasing each equipment. So, how do you ultimately determine which equipment you need based on your specific situation? The following are possible situations:
1. Dual-computer direct connection
That is to say, one of the computers is connected to the ADSL Modem, and then directly connected to the other computer through the network card. . If you use this kind of connection, you need to set up Internet sharing proxy settings on the computer with broadband access, such as installing proxy software such as Wingate to achieve dual-machine sharing of the Internet. This is the cheapest network.
2. Broadband router + network card + computer
This method is mainly used when there are not many shared computers. Because general broadband routers provide 4 switch ports, if there are less than 4 computers that need to be shared, there is no need to spend money to buy switches. The specific connection method is: the ADSL broadband line is connected to the ADSL Modem, the direct twisted pair is connected to the Modem and the router, and other computers are connected to the router using a crossed twisted pair.
3. Broadband router + switch + network card + computer
Corresponding to the above situation, this method is used when the shared computer is larger than the switching port of the broadband router. At this time, the switch is needed to help, and the switch with the corresponding port is selected according to the number of shared computers.
That is to say, all shared computers are first connected to the switch, and then connected to the broadband router through the switch, thereby achieving unlimited access to the Internet.
4. Switch + network card + computer
If your ADSL Modem has its own broadband routing function (please check the product manual), you can omit the router. This is the only difference from the above three methods. It is also more convenient to connect, and there is no need to set up at all. The connection method is: connect the LAN port of the ADSL Modem to any port of the switch with a twisted pair, and then connect each computer to the remaining port of the switch.
Set up a local area network and enjoy the Internet
——》1: Direct connection with network cable is not the most economical method. Although we only need to add 1 network cable and 1 network card, the total The total price will not exceed 100 yuan. However, this approach has the biggest weakness, which is that both machines must be turned on at the same time when accessing the Internet. Unless you only use the host computer to access the Internet, the accumulated electricity bills will not necessarily save you any money compared to other methods~~, so it is recommended not to Use this method!
——》Two: Use switch/HUB and server methods. We can use software such as SyGate to create a shared system where whoever turns on the computer first becomes the host. However, there is also a potential problem. If the machine as the host is shut down in advance, the network of the other machine may be disconnected. , if you are using IE to download the file halfway, if you are playing Lianzhong... Haha, you can imagine the consequences!
——》Three: Use broadband routing. If you don't want to set it up yourself, you can ask a technician to set it up for you when you buy broadband.
At the same time, the benefit of this method is stability! It is the most stable of all the above solutions. There seems to be no objection to this. It also saves effort. You don’t need to dial up every time you go online. The broadband router will automatically do this for you. Moreover, the broadband router also has a disconnection redial function. How much trouble is saved? The next step is security. The IP you expose to the Internet is the IP of your route, not the IP of the machine itself, so you are virtually protected.
Furthermore, it does not violate the regulations of China Telecom or China Netcom. Even if it restricts the MAC address, it is useless because the route itself has a MAC address.
——》1. First, connect the broadband modem to the WLAN port of the router. You can use the connection cable that comes with the modem.
——》2. Use a direct network cable to connect a Lan port of the router to the UpLing port of the switch. Also use a direct network cable to connect the normal port of the switch to the computer. In this way, the hardware environment is ready. If you have relatively few machines, only 2 or 3, there is no need to add a switch. Just connect a Lan port of the router to a computer using a direct network cable.
——》3. For the first machine, first set your network parameters (right-click "Network Neighborhood"-"Properties"-right-click "Local Area Connection"-Properties-find the TCP/IP protocol and double-click it ):
IP address: 192.168.1.11
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS : Leave it alone.
Then click "OK" all the way and restart when necessary. But if there is any prompt, you'd better restart it.
——》4. For the second machine, just like the first one, just change the IP address to 192.168.1.12. By analogy, the local area network has been successfully formed.
——》5. To set up broadband routing, I think there should be a manual. I will only briefly introduce it.
First find a machine, then open IE, enter: 192.168.1.1 in the address bar and press Enter. You are prompted to enter your username and password, see the instructions.
After correctly entering the routing configuration interface, select the PPPOE mode for Internet access if it is ADSL dial-up. At this time, you need to enter your username and password for Internet access. If IP is allocated directly, choose the direct IP form. Please consult your ISP for details.