How Ubuntu sets static IP

When searching for "Set Static IP" on the network, the results appear are set by modifying the file. This way it is easy to make the computer's network unusable. It is recommended to use the following method to modify.

The basic way of IP allocation

The way IP is allocated is generally determined by the router. The router has two modes: DHCP mode and static IP. DHCP is a dynamic way of assigning IP. The default router is this mode. In this mode, the computer can also set its own static IP. Of course, there is no guarantee that it will succeed. For example, the IP set by yourself may be occupied by others. It is also possible that the router will not assign you the IP you set because of the confusion. Let's talk about the various methods of setting static IP.

Several ways to set static IP

  1. For router settings, setting up a static IP through a router is the easiest way. However, the premise is that you must have the management rights of the router, and the router should also support this setting function. First enter the address of the route in the browser and enter the management interface of the router.

0_1537584263017_c9ac434a-a785-4269-a0c9-32c09f8b922e-image.png

There are IP and MAC binding options in application management. Different router settings interface is different, you can find the specific location of this function.

0_1537584278008_14b7f63d-997e-4081-a47b-a313935b8214-image.png

Here you can set up a static IP.

0_1537584291533_06384c5b-99d6-49cd-8415-e5bcc5d9d094-image.png

  1. Make settings on the computer After the computer is connected to the network, open the computer's network manager and select your current network link, select Edit.

0_1537584306566_97ff454d-fffa-48a6-a97a-cd50a1de696c-image.png

0_1537584312402_b4c6f1b1-7d2c-4ad5-868c-6d6147b3bb56-image.png

Click on IPv4 settings

0_1537584324518_8e0f2d59-a617-4026-8200-d4c1c2426592-image.png

Set up as shown below

0_1537584337519_1631695e-5a91-496c-8d04-2e4d87645ae5-image.png

192.168.0.199 is the local IP you want to set, so you can't repeat it with other IPs on the LAN. 192.168.0.1 is the address of the router. This should be adjusted according to your own network conditions. After the setting is completed, click Save to open, then disconnect the network and reconnect. It will take effect only after reconnecting.

0_1537584352648_98b8c913-ab41-43fb-91d0-14f024cd6c1e-image.png

Enter ifconfig to view the current network information, you can find that my wireless network has been set to the IP just now.

results matching ""

    No results matching ""