In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
After the company has isolated the internal and external networks, the same computer may need to switch back and forth when surfing the Internet, which brings a lot of trouble to the work. By modifying the default route setting of the windows system, a laptop can be connected to both the internal network and the external network.
Take the situation I encountered as an example: the intranet needs to be configured with 10. Segment IP, the external network needs to use wireless access IP (192. Paragraph)
Prerequisites:
Notebook two network cards, usually wireless network card and wired network card, if your computer is not too old, this condition is basically met
Files are required:
Create a new text file and save it as a batch file with the suffix .bat, such as "BridgingNet.bat", with the following code:
@ echo offecho=echo Please make sure that both the internal and external networks are connected! echo=pauseRem deletes the default route information local to the computer route delete 0.0.0.0Rem creates a default route (public network) route add 0.0.0.0 mask 0.0.0.0 192.168.100.254Rem add route information pointing to the network segment of this computer route add 10.96.122.0 mask 255.255.255.0 10.96.122.1Rem add route point to Routing information of server network segment route add 10.96.123.0 mask 255.255.255.0 10.96.122.1echo=echo warning: if there is no private network operation Please disconnect the intranet in time and pay attention to data security! Echo=pause
Code description:
1. The local computer's wired network segment is 10.96.122.0. since we need to access some servers in the 10.96.123.* network segment, we need to add another route to the network segment you want to access in adding routing information (note that the gateway enters this)
Route add 10.96.123.0 mask 255.255.255.0 10.96.122.1
2. The default gateway IP of the local computer wireless network is 192.168.100.254.
Route add 0.0.0.0 mask 0.0.0.0 192.168.100.254
Operation configuration process
1. First configure the local IP to ensure that you can connect to the private network properly.
2. Switch wireless to ensure that the computer can connect to the wireless network properly. At this time, the wired network will definitely be disconnected, because windows can only have one default gateway by default.
3. Win7 and above operating system, right-click "run as administrator" batch file, and then you can connect both internal and external networks.
Description:
1. This batch process modifies the default gateway information, which is not a fixed gateway information, so you need to run this file every time the computer is powered on.
2. This file deletes the default gateway of the wired network card. If the network connection is abnormal, you need to manually configure the default gateway of the local connection. After the private network connection is normal, switch to the public network connection is normal, and finally run the batch file.
3. There seems to be a way to configure a fixed gateway on the Internet. From the perspective of network security, it is better not to be fixed. Since enterprises want to be isolated, it is better to connect temporarily.
Finally, I would like to express my emotion that the network knowledge I learned in college has not been in vain.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.