To use a dual-nic to access both the internal network and all the commands below the internet, you need to execute Information Collection in cmd in administrator mode and prepare the machine to have a wireless Nic machine that can access the Internet and a machine that can access the company's internal LAN. first, run the "route print-4" command to view the route information of windows. ========================================================== ======================================== Interface list 12... 74 de 2b 0d 83 f0 ...... 1x1 11b/g/n Wireless lan pci Express Half Mini Card Adapter 11... f0 de f1 88 20 39 ...... intel (R) 82579LM Gigabit Network Connection 1 ........................... software Loopback Interface 1 16... 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 26... 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 13... 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface ====================== ========================================================== ========= IPv4 route table ====================================== ========================================================== ===== active route: network destination network mask Gateway Interface hops 0.0.0.0 0.0.0.0 10.30.39.250 10.30.36.27 20 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.105 50 10.30.32.0 255.255.248.0 10.30.36.27 286 10.30.36 on the Link. 27. Route route 192.168.1.105 281 192.168.1.105 255.255.255.255.255 on the Link 192.168.1.105 281 192.168.1.255 255.255.255.255.255 192.168.1.105 281 ============== ========================================================== =================== The first and second lines of the active route section are the default route information of the local machine. The first line indicates that all target addresses are directed to the network card 10.30.39.250 through the gateway and the network card 10.30.36.27. The number of hops is 20 (wired network card) the second line indicates that all target addresses are directed to the network adapter whose IP address is 192.168.1.105 through the gateway. The number of hops is 50 (wireless network adapter). The lower the number of hops, the higher the priority. The number of hops can be understood as how long it takes for us to reach another place from one place. Of course, the machine will select the path with the least time to reach the destination. Add route information because we want to set the default egress to a wireless Nic, We need to manually add route information. Route-p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1 IF 12 The IF command is followed by the nic id, we can get the ID of our wireless network card (the first two digits of each line) from the interface list of route information of route print-4. 192.168.1.1 is the gateway of our wireless network card. How should we access the company's internal lan? Route-p add 172.20.0.0 mask 255.255.0.0 10.30.39.20.metric 1 IF 11 172.20.0.0 is the company's internal LAN address, 255.255.0.0 is the subnet mask of the company's internal LAN, 10.30.39.250 is the ethernet card gateway, 11 is the ethernet card number. After route information is added, the route information after you enter the route print-4 command will include the following permanent routes: network Address network mask gateway address hops 172.255.0.0 255.255.0.0 172.20.39.20.1 0.0.0.0 0.0.0.0 192.168.1.1 1 verification results access the company's LAN and Internet websites when both NICs are enabled