How to adjust the priority of a network card under Windows 7

Source: Internet
Author: User

Click start → settings → control Panel, double-click Network and Sharing Center, click Manage network adapter settings on the left, and press the ALT key in the Open Network Connections folder to make the menu appear. Select advanced → advanced settings, select the appropriate network adapter under the order in which connections are accessed by network services, and click the up or down buttons on the right to set the network card priority.

In fact, only one of all Windows connections is currently active connection, that is, priority,


Modification priority in:
Network connection----Explorer----Advanced Menu---Advanced settings
Here you can change the precedence of all network connections down to the


Another interesting question is how to see what connection is used when connecting, and it is possible,
For example, there is a wireless connection first connected on the Thunder when the download plug in the wired network cable

According to the priority network connection should be immediately switched, but sometimes the system does not respond in time, it will ask which connection is used


A lot of ways,
Netstat-an, will immediately display the local address, look at the IP will know
Pathping
IP, the first one will show the address of which network card is local
There are a lot of ways,,,,
Of course, the above methods to check the local address, but also to use Ipconfig
/ALL Check the address of the corresponding network card,,,


Another,,, above is the case of multiple interfaces,
Another priority is when wireless networks are connected to multiple APs, and there are also priority issues,
You can modify it in a wireless connection.


The question of expansion comes up, and want to use two connections at the same time????
When a server is connected to a dual gateway for routing,

This is to say that the priority of the interface referred to above is determined by routing, and the interface is only a route-selected exit

Therefore, it is useless to look at the priority of the connection alone, or pathping can be a good response to the situation of routing decisions


Alternatively, double gateways can be bridged together, doing load balancing,,,,,,,,,,,



=============================================================


Note: Here the 172.16.x.x and 192.168.1.X are related to your LAN environment, you can ipconfig/all view under command line


LAN Cable Connection (network segment 172.16.x.x, do not provide access to Internet services), WiFi connection (network segment 192.168.1.X, can connect the Internet).


If the cable network card and wireless network card are connected, because the high priority of the wired network card, so only the wired LAN can work properly, the wireless network card can connect but can not transfer data. To change this situation, you need to make changes to the notebook local routing settings: Access to 172.16.x.x requests have wired network card processing, access to other networks by the wireless network card processing. Set the steps as follows:


1 Set the wireless network card as the default routing Gateway: Wireless networking Properties-internet Protocol (TCP/IP)-Properties-Advanced, manual input without lines by the gateway, I have here is the 192.168.1.1, the metric is "1", is the highest priority. By this step, if a wired connection, a wireless connection is present, all data is processed via the wireless card.


2 "Set the exclusion information, the 172.16.x.x section of the URL connection request to the Priority card processing: At 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 a local LAN network segment, 172.16.6.1 is the default gateway of the net segment of this machine, need to fill in according to the specific situation.


After the above settings, in the access to the local network segment by the Wire card processing, access to the Internet can be referred to the wireless network card processing, there will be no conflict.



Additional information (from network)


Many of the company's network management to try to solve the problem of dual NIC, I will give you a detailed explanation of the dual network card at the same time to use the method, so you can guarantee the security of the Intranet, but also to solve the problem of computer access to the network, kill two birds with one stone. I hope you like it.


First of all, your machine needs to have two network cards, respectively, to two switches,


Internet address: 192.168.1.8, subnet mask: 255.255.255.0, Gateway: 192.168.1.1


Internal network 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 network card according to the normal setting method, then you will see when you use route print to view


Network Destination Netmask Gateway Interface Metric


0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.8


0.0.0.0 0.0.0.0 172.23.1.1 172.23.1.8


This means that there are two gateways pointing to 0.0.0.0, which can cause routing conflicts and neither network can access them.


How do I achieve simultaneous access to two networks? It's going to take the route command.


The first step: route delete 0.0.0.0 "Remove all 0.0.0.0 routes"


Step two: Route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
"Add 0.0.0.0 Network route" This is the main, meaning that you can network.


Step three: Route add 172.23.0.0 Mask 255.0.0.0 172.23.1.1
"Add 172.23.0.0 network route," Note that mask is 255.0.0.0, not 255.255.255.0, so that the internal multiple network segments are available.


At this point, you can access two network at the same time, but there is a problem, the route added using the above command will be lost automatically after the system restarts, how to save the existing routing table?


Route Add-p adds a static route, that is, the route is not lost after the reboot. Note Before using the gateway in the TCP/IP settings to remove the network card from the intranet


------------------------------------------------------------------------------------------------


Some units separate the intranet from the extranet. The method is as follows:
1. The gateway to the Internet network is set to 10.0.0.1, which is the default gateway when enabled
--Note: This is the corresponding network card, in accordance with your network IP distribution, in the TCP/IP properties configured well
IP, Mask, DNS


2. Connect the Unit intranet network adapter IP, set the gateway to empty (that is, not set the gateway), when enabled, the intranet can not be routed through the gateway


3. Enter cmd, run: route-p add 192.0.0.0 Mask 255.0.0.0 192.168.0.1 metric 1


--NOTE: The 192 * IP Packet Routing gateway is set to 192.168.0.1, the-p parameter on behalf of the permanent write routing table, we recommend that you do not add this parameter, after the practice is written up


4. ok! At the same time enable two network cards, two gateways can work at the same time, two subnets can also be accessed at the same time, shut down after restarting also need not reset!

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.