As the world has entered the Internet era, more and more network operators have also developed one after another, which has been widely used in communities, schools, banks and other regions. Due to the uneven distribution of network providers in different regions, a certain network line is not running smoothly. In order to solve this problem, this paper puts forward a method that users can dynamically choose networks according to their preferences, and the problem can be solved by static routing and network address translation. At first, set the internal IP addresses of different users and the external IP addresses provided by internet providers on the ports on both sides of the user LAN router. During network address translation, a fixed one-to-one relationship established by the internal IP and the external IP is loaded into the routing table of the user LAN as a static route. Finally, users can actively and dynamically set the internal IP of the user LAN router in the router list in the user computer and realize the method that the user dynamically selects different interconnection networks.