The easiest way to set fixed IP in Ubuntu!

Time:2020-8-14

Because the mouse sharing software needs to use the network connection, the IP of the desktop computer always changes, causing the laptop to reconfigure the IP every time it restarts. So I set the fixed IP for Ubuntu. The method is very simple, and it can be configured directly in the system settings.

1. View the default network configuration

Open system setting and network

The easiest way to set fixed IP in Ubuntu!

The wired network I am connected to:

The easiest way to set fixed IP in Ubuntu!

Start the terminal and “ifconfig” to view the following mask:

The easiest way to set fixed IP in Ubuntu!

Record your configuration here, and use it later:

  • IPv4: IP address
  • Default route: gateway address
  • Mask:255.255.255.0
  • DNS: I have two DNS here

2. Add fixed IP manually

Open “setting” in the network. The interface may be different:

The easiest way to set fixed IP in Ubuntu!

Click “IPv4”, and the address option is set to “manual” mode. Other configurations are as follows:

  • Set a static IP. In order to prevent computer conflicts with other students, I set the address of 210, that is, 192.168.0.210. It is recommended that you also set a 200 + address
  • Other netmask, gateway and DNS are the same as before

After configuration, click “apply” in the lower right corner and restart the computer!

The easiest way to set fixed IP in Ubuntu!

The easiest way to set fixed IP in Ubuntu!