How Do You Assign a Static IP Address on a Linux Computer?

How Do You Assign a Static IP Address on a Linux Computer?

A computer that uses a Linux operating system normally gets its IP address through the DHCP (dynamic host control protocol) service. To change the dynamic IP address to a static one, you need to access the network settings, and set the method under the IPv4 settings tab to manual.

  1. Access the network settings

    Once you boot up the computer, log in as the user. Move the mouse pointer to the lower right section of the screen, and left-click on the Network Manager icon to open the menu. Right-click on the Network Settings option to access the Networking application window.

  2. Select the network you wish to modify

    On the left side of the application window, select the network to which you want to assign a static IP address. If it’s not selected by default, right-click on it. After that, right-click on the options button in the bottom right of the screen.

  3. Change the method to manual

    In the Editing window, right-click on the IPv4 tab and hover the mouse pointer over the drop list next to the Method label. Right-click on it, and select the Manual option.

  4. Set the address

    Right-click on the text box under the Address label, and type the IP address you wish to use.

  5. Save the settings

    Once you are finished, right-click on the Save button in the lower right section of the window.