Configure the default gateway of the router
1. Demand analysis
Recently I learned redis
clusters at home , and the computer needs to change location due to special reasons. So different networks will be used. And I need to use a virtual machine. So the IP
question of gateway and so on came. I can't reconfigure the entire server every time I change places! We are a natural beauty program ape! Without further ado, just do it.
2. Problem solving
First connect to the Internet. Then open the console window. Enter the command ipconfig
. View information about current network settings. For example, the author of this machine ip
is now: 192.168.0.102
. Gateway 192.168.0.1
is: . I want to change this gateway to other values.
Then open the browser to enter the router interface. Did you see the previous gateway? 192.168.0.1
Yes, we just type it in the address bar of the browser. As shown below:
Click after entering the main interface 系统管理
. Then slide down. We discovered the protagonist of today. Login IP
address.
Then modify it to the gateway we need. Here the author changes to 192.168.43.137
.
Then save and restart.
Enter the command in the console again ipconfig
. View information about current network settings. We found that our gateway has become the gateway we want.
For insurance purposes. ping www.baidu.com
, You can go online and solve the problem.
Like it and go! Welcome to leave a message!