How to set the virtual network card and virtual gateway

Source: Internet
Author: User
Shared guard version 2.0 has added many features. The most important one is that it can provide automatic host switch. In order to ensure the implementation of the host switching function, the configuration is much more complicated than Version 1.0, especially when users use the fixed IP Mode of a single Nic, the concept of the virtual network card and the virtual gateway is not very clear, resulting in configuration errors and cannot access the Internet. Below are some additional instructions on the setting of virtual IP addresses and virtual gateways for a single NIC with a fixed IP address. I hope this will help you.
1. Connection method:
The ADSL cat-router (Wan port) uses the router to automatically dial up. Each computer is connected to the LAN port of the router, and the router provides an Internet gateway for all machines. For example, if the vro address is 192.168.1.1, the IP address of each computer is 192.168.1.x (2-254), the mask is 255.255.255.0, And the gateway is 192.168.1.1, however, shared guard is not used to access the Internet.
If shared guard is used, the connection mode remains unchanged. You need to set the virtual Nic and virtual gateway, and reset the NIC address of the machine.
2. Virtual NIC:
Because version 2.0 supports automatic host switch, a virtual network card is required to connect to the Internet. That is to say, a virtual network card is used to connect to the router to provide an Internet connection. Therefore, the IP address of the virtual network card must be in the same network segment as the router. The Gateway is the router address, that is, the IP address of the virtual network card is the address that can access the Internet. In this example, the virtual network card should be set to IP: 192.168.1.x (2-254), mask: 255.255.255.0, Gateway: 192.168.1.1;
3. virtual gateway:
The virtual gateway also ensures host switching. Its role is to provide egress for internal machines. All computers must set the local NIC address in the same network segment of the virtual gateway, A gateway is a virtual gateway (including a host with guard installed ). In this example, we can set the virtual gateway to 192.168.2.1 (To avoid conflicts with vrouters or other addresses, we recommend that you do not use 192.168.0.x and 192.168.1.x CIDR blocks.)
4. Computer settings:
You must reset the IP address of each computer (including the host) on the Intranet. Make sure that the IP address is in the same CIDR block as the virtual network, and set the virtual gateway as the local Nic gateway. In this example, the IP address of each machine is set to 192.168.2.x (2-254), mask: 255.255.255.0, and Gateway: 192.168.2.1.
If you are using a fixed IP address provided by the carrier, you need to set the virtual NIC address to this IP address, and then set the virtual gateway and the IP address of each machine.
General principle: the virtual NIC address is an IP address that can be accessed without considering other settings, which is equivalent to a WAN network port. The virtual gateway provides communication for internal machines, the IP address must be in the same CIDR block as that of the internal machine.

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.