Configure the default gateway of the router

Configure the default gateway of the router

1. Demand analysis

  Recently I learned redisclusters 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 IPquestion 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 ipis now: 192.168.0.102. Gateway 192.168.0.1is: . I want to change this gateway to other values.

Insert picture description here

  Then open the browser to enter the router interface. Did you see the previous gateway? 192.168.0.1Yes, we just type it in the address bar of the browser. As shown below:

Insert picture description here

  Click after entering the main interface 系统管理. Then slide down. We discovered the protagonist of today. Login IPaddress.

Insert picture description here

  Then modify it to the gateway we need. Here the author changes to 192.168.43.137.

[External chain image transfer failed, the source site may have an anti-theft chain mechanism, it is recommended to save the image and upload it directly (img-mUIBq7O8-1586658997657) (./1586658603870.png)]

  Then save and restart.

Insert picture description here

  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.

[External chain image transfer failed, the source site may have an anti-theft chain mechanism, it is recommended to save the image and upload it directly (img-2IvsO9Uv-1586658997659) (./ 1586658773760.png)]

  For insurance purposes. ping www.baidu.com, You can go online and solve the problem.

[External chain image transfer failed, the source site may have an anti-theft chain mechanism, it is recommended to save the image and upload it directly (img-il7mq18K-1586658997659) (./ 1586658833726.png)]

Like it and go! Welcome to leave a message!

Published 22 original articles · praised 4 · 220,000 views

Guess you like

Origin blog.csdn.net/qq_32510597/article/details/105465624