How to adjust the NIC priority in Windows 7

Source: Internet
Author: User


In Windows 7, how to adjust the NIC priority click Start> set> control panel, double-click Network and sharing center, and then click manage Nic settings on the left ", press Alt in the "Network Connection" folder to display the menu. Select "advanced"> "Advanced Settings", and select the corresponding network adapter under "connection in the order accessed by network services, click the up or down button on the right to set the NIC priority. In fact, there is only one active connection for all windows connections, that is, there is a priority. Modify the priority in: www.2cto.com network connection ---- Resource Manager ---- advanced menu --- advanced settings here you can change the priority of all network connections to the center. Another interesting question is how to check which network connection is used connection, this is possible. For example, if a wireless connection is first connected, the wired network is inserted during the use of thunder for downloading and the priority network connection should be switched immediately, but sometimes the system does not respond in time, I will ask which connection is used in many ways. netstat-an will immediately display the local address and check the ip address to find the pathping ip address, the first one will show the address of the local Nic. There are many other methods, and, of course, after finding the local address, you must use ipconfig/all to view the NIC corresponding to the address ,,, in addition, the preceding multi-interface scenario has a priority when the wireless network is connected to multiple APs. The problem is that you can modify the expansion problem in the wireless connection. What if you want to use two connections at the same time ???? For example, when the server is connected to a dual gateway for routing, the priority of the interface mentioned above is determined by the route, and the interface is only the egress of the route, it is useless to look at the connection priority, or pathping can well reflect the route selection situation www.2cto.com. In addition, the dual gateway can also bridge together, load Balancing, etc ,,,,,,,,, ========================================================== ================================== note: here, 172.16.x.x and 192.168.1.X are related to your LAN environment. You can run the command line ipconfig/all to view LAN wired connections (CIDR Block 172.16.X.X, which does not provide internet access services), and WIFI connections (CIDR Block 192.168.1.X, can connect to the Internet ). If you connect both the wired network card and the wireless network card, because the wired network card has a high priority, only the wired LAN can work normally. the wireless network card can be connected but cannot transmit data. To change this situation, you need to modify the local route settings of the notebook: all requests to access 172.16.X.X are handled by a wired network adapter, and requests to access other networks are processed by the wireless network adapter. The procedure is as follows: 1. Set the wireless network card as the default route Gateway: Wireless Network Connection Properties-Internet Protocol (TCP/IP)-properties-advanced, manually enter the wireless route gateway, here is 192.168.1.1, with the hop number "1", which is the highest priority. In this step, if both wired and wireless connections exist, all data is processed by the wireless Nic. 2. Set the exclusion information and submit the URL Connection Request for section 172.16.X.X to the priority Nic. On the command line, enter the following command route-p add 172.16.0.0 mask 255.255.0.0 172.16.6.1 where 172.16.0.0 is the local area network segment, 172.16.6.1 is the default gateway for the subnet segment of the Local Machine. Set this parameter based on your needs. After the above settings, All accesses to the primary network segment are handled by the wired network adapter, and the access to the Internet can be handled by the wireless network adapter, so there will be no conflict. Www.2cto.com other information (from the network) Many companies attempt to solve the problem of dual Network Interfaces. Next I will explain in detail how to use dual network interfaces to ensure the security of the Intranet, it can also solve the problem of computer access to the Internet. I hope you will like it. First, your machine needs two NICs, which are connected to the two switches respectively. internet address: 192.168.1.8, subnet mask: 255.255.255.0, Gateway: 192.168.1.1 Intranet address: 172.23.1.8, subnet mask: 255.255.255.0, gateway: 172.23.1.1 if you set the IP address and gateway of each Nic according to the normal setting method, when you use route print in cmd, you will see Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 0.0.0 192.168.1.1 192.168.1.8 0.0.0.0 0.0.0 172.23.1.1 172.23.1.8 routing pointing to 0.0.0.0 has two gateways, so there will be a route conflict, both networks are inaccessible. How can I access two networks at the same time? Use the route command Step 1: route delete 0.0.0.0 "delete all 0.0.0.0 routes" Step 2: route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 "add 0.0.0.0 network route, it means you can access the Internet. step 3: route add 172.23.0.0 mask route 0.0.0 172.23.1.1 "add 172.23.0.0 network route". Note that the mask is 255.0.0.0 rather than 255.255.255.0, so that multiple internal network segments are available. In this case, you can access the two networks at the same time. However, if you encounter a problem, the route added using the above command will be automatically lost after the system restarts. How can you save the existing route table? Route add-p adds a static route. After restart, the route will not be lost. Note that before use, remove the gateway that connects to the NIC of the enterprise intranet in the TCP/IP Settings. Some units separate the Intranet from the Internet. The method is as follows: 1. set the gateway for the NIC connected to the internet to 10.0.0.1. The default gateway is used after the NIC is enabled. Note: This is the NIC corresponding to the internet, which is allocated according to the ip address of your internet organization, configure IP, mask, and DNS in TCP/IP properties. after configuring the nic ip address of the intranet connection unit, set the gateway to null (that is, no gateway is set). After the gateway is enabled, the Intranet cannot route www.2cto.com 3 through the gateway. go to CMD and run: route-p add 192.0.0.0 mask route 0.0.0 192.168.0.1 metric 1 -- Note: Set the routing gateway of the 192 * IP package to 192.168.0.1. The-P parameter indicates that the route table is permanently written, we recommend that you do not add this parameter first, and write it in practice. 4. OK! Enable two NICs at the same time. The two gateways can work at the same time, and the two subnets can be accessed at the same time. You do not need to reset them after Shutdown and restart!

Related Article

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.