In-depth analysis of vswitch route settings

Source: Internet
Author: User

In-depth analysis on how the vswitch sets routes, and about how the vswitch is set up, the following describes preparations for vswitch settings, including networking preparation and vro settings, as well as the selection and purchase of some consumables.

I. How to set up the network device for a vswitch

Here, I assume that you have applied for the ADSL Broadband Service at China Telecom and have installed it in place. When creating a shared LAN, please first check your ADSLModem product description. If you support the routing function, you can save the money to buy a Broadband Router; otherwise, this device is essential;

In addition, another essential device is a switch, which allows computers to communicate with each other as a transit device. In addition, each computer needs to install a NIC to receive data, as well as the urgent response to the feedback from the parent hacker, these are basically the same. If you only have two computers, you don't have to worry about it. You can directly install a network card on each of the two computers and connect it with the network cable.

1. How to set a vswitch: Broadband Router

A Broadband Router has two functions: one is to connect different networks, and the other is to select the information transmission line. It is the best solution for sharing broadband connections. It becomes the first choice for Internet shared access with ease of use, ease of management, and zero maintenance.

Choosing a vro or a computer is the first thing to do is to look at the hardware. The hardware is the basis for the operation of the vro. It has good hardware models and high quality. The vro not only has stable functions, but also supports function expansion. For example, the number of connected computers. Generally, the upper-and middle-level access routers support 100 PCs. Besides IP sharing and routing, they also provide firewall, time management, DMZ, and other functions;

For example, large-capacity memory and flash memory can provide powerful processing capabilities for routers. At present, there are many brands of such products on the market. You can ask your friends around you about which brands have a good reputation in the local market. More common are: youxun D-LINK), TP-LINK, AI technology, Cisco, 3Com, Huawei 3Com and so on.

2. vswitch

Vswitches and subsequent products of this hub are incomparable to the former in terms of speed and functionality. Its main function is to achieve interconnection among multiple computers, which is equivalent to the "man-in-the-middle" in the prerequisite. In today's home switch market, the prices of switches vary greatly depending on different brands and port numbers.

Therefore, when purchasing a vswitch, you should choose based on your actual situation, such as the selected networking mode, price, brand, and switch shape, in addition, you must pay attention to the performance indicators of vswitches, such as the number of interfaces. Generally, vswitches with five or eight ports are the first choice.

3. How to set a vswitch: Nic and network cable

The NIC is also called NIC, which means NetworkInterfaceCard (network interface card). It is used to break data into packets and then send them to the network. At present, the market is mainly for PCI interface Nic. On the other hand, we usually refer to 10 M Nic, M Nic, 10 M/M Adaptive Nic, etc., mainly based on the network adapter connection rate.

Based on the above, the most mature choice for users today is the 10 M/M product of the PCI interface. The laptop is a PCMCIA Interface Nic, which is much more expensive than the PCI Nic on a common PC. Generally, the PCI Nic can be won after dozens of RMB, PCMCIA usually costs 1 to 2 hundred.

In terms of network cable, I did not pay too much attention to it. Generally, cat5e twisted pair wires are used. When you buy them, merchants will connect you based on your network type, so don't worry. The price of the network cable is measured in length, generally 1.5 yuan/meter.

Ii. How to set a vswitch: About device connection

We have already known what equipment is required to build such a network and how to purchase each device. Then, how can we determine which devices we need based on the actual situation? There are several possible situations:

1. How to set a vswitch: Dual-host direct connection

That is to say, one of the computers is connected to the ADSLModem and then directly connected to the other computer through the NIC. If this connection is used, you need to configure internet sharing proxy on the Broadband Access Computer, such as installing proxy software such as wingate to achieve internet sharing between two machines. This is the cheapest network.

2. Broadband Router + Nic + computer

This method is mainly used when there are not many shared computers. Generally, a Broadband Router provides four vswitch ports. If the number of computers to be shared is smaller than four, there is no need to pay for the vswitch. The specific connection method is: The ADSL Broadband line is connected to ADSLModem, and the directly connected twisted pair wires are connected to the Modem and router. Other computers can connect to the router with the twisted pair wires.

3. Broadband Router + switch + Nic + computer

This method is used when the shared computer is larger than the Broadband Router switch port. In this case, you need a switch and select the corresponding port switch based on the number of shared computers. That is to say, all the shared computers first connect to the vswitch and then connect to the Broadband Router through the vswitch to achieve Internet sharing.

4. How to set a vswitch: vswitch + Nic + computer

If your ADSLModem comes with the broadband routing function, please refer to the product manual), you can save the router. This is the only difference from the above three methods. It is more convenient to connect. You do not need to set the connection mode. The LAN port of the ADSLModem is connected by a twisted pair and any port of the switch, and then each computer is connected to the remaining port of the switch.

◆ Direct network connection is not the most economical practice. Although we only need to add one network cable and one network card, the total price will not exceed 100 yuan. However, the biggest weakness of this approach is that when two machines are on the Internet, they must be on at the same time. Unless you only use the host to access the Internet, the accumulated electricity cost will not be much cheaper than other methods ~~, We recommend that you do not use this method!

◆ Switch/HUB and server are used. We can use software such as SyGate to share a host, but there is another potential problem: when the host is shut down, the network of another machine may be disconnected. If you are using ie to download half of the file, if you are playing with the crowd ...... The consequences can be imagined!

◆ Broadband routing is adopted. If you do not want to set it yourself, you can ask the technical staff to help you set it when purchasing broadband. At the same time, this method also brings stability! It is the most stable of all the above solutions. It seems that there is no objection.

There is also effort-saving. You don't need to dial every time you access the Internet. This is done automatically by the broadband route. In addition, the broadband route has the reconnection function, saving you a lot of trouble? The next step is security. The IP address that you expose to the Internet is the IP address of your route, not the IP address of the machine itself, so that you are virtually protected. In addition, there is no violation of China Telecom or China Netcom regulations. Even if he limits the MAC address, it is useless because the route itself has a MAC address.

◆ Connect the broadband cat to the WLAN port of the router. You can use the random cable of the cat.

◆ Use a direct connection network cable to connect a Lan port of the router to the UpLing port of the switch. You can also use a direct connection network cable to connect the common port of the switch to the computer. In this way, the hardware environment is ready. If you have fewer machines and there are two or three machines, there is no need to add a vswitch. You can connect a Lan port of the vro to a computer with a direct connection network cable.

◆ On the first machine, right-click your network parameters, select "Network Neighbor"-"properties"-Right-click "Local Connection"-properties-find the TCP/IP protocol, and then double-click it ):
IP Address: 192.168.1.11
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1
DNS: Ignore it.
Then click "OK" to restart the instance. But are you sure you want to restart it.

◆ The second server, for example, the first server, only changes the IP address to 192.168.1.12. And so on. At this time, the LAN is successfully formed.

◆ Set up a broadband route. I think there should be instructions. I will just give a brief introduction. First find a machine, then open IE, enter 192.168.1.1 in the address bar, and then press Enter. Prompt you to enter the user name and password, see the instruction manual. After entering the routing configuration page correctly, you need to enter your Internet user name and password if you select PPPOE for ADSL dialing. For direct IP Address Allocation, contact your ISP for details.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.