Comments on: How to Assign Static IP Address on Ubuntu 20.04 LTS https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/ Wed, 24 May 2023 12:30:25 +0000 hourly 1 By: Gilbert https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-53941 Wed, 24 May 2023 12:30:25 +0000 https://www.linuxtechi.com/?p=10423#comment-53941 I saw this link at askubuntu.com
I was having issue statically assigning IP in ubuntu
and after following your steps it worked.
Thanks so much and keep it up

]]>
By: Yuliya https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-23132 Thu, 03 Jun 2021 17:25:12 +0000 https://www.linuxtechi.com/?p=10423#comment-23132 Useful article. I am using usb broadband modem and for my case it was also useful to use such command to find out default gateway
$ ip route | grep default
It has given: default via 10.1.1.3

]]>
By: Philip https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-23021 Sun, 02 May 2021 15:05:03 +0000 https://www.linuxtechi.com/?p=10423#comment-23021 In reply to Eduardo.

I got the same problem. I’m running ubuntu 20.04 on virtualbox. I fixed it by changing the “gateway4: 192.168.1.1” to “gateway4: 192.168.0.1”. Flipping the 1 to a 0, or to the same number as the one in my own ip in that place.
Happy debugging!

]]>
By: Alex https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-22949 Wed, 07 Apr 2021 09:42:32 +0000 https://www.linuxtechi.com/?p=10423#comment-22949 Thanks for the good informations…

]]>
By: Eduardo https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-22350 Fri, 13 Nov 2020 13:49:54 +0000 https://www.linuxtechi.com/?p=10423#comment-22350 Hello, I’m running ubuntu server 20.04 on a hyper-v environment, i did all steps in the page, but when I want to run update, can´t connect to internet. Please help.

]]>
By: Avijneyam https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-22027 Sat, 17 Oct 2020 17:18:51 +0000 https://www.linuxtechi.com/?p=10423#comment-22027 Thank You Very Much My Problem has fixed now All credit goes to you 🙂

]]>
By: Andrstnd https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-21942 Wed, 07 Oct 2020 20:31:00 +0000 https://www.linuxtechi.com/?p=10423#comment-21942 nice but i cannot follow your tutorial cause i just using phone
Hehe

]]>
By: Jeff Cold https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-21758 Fri, 18 Sep 2020 14:50:45 +0000 https://www.linuxtechi.com/?p=10423#comment-21758 $ip addr show just hung my SSH session. I don’t know how long it will take to time out.

]]>
By: diskdur https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-20542 Thu, 04 Jun 2020 07:52:08 +0000 https://www.linuxtechi.com/?p=10423#comment-20542 In reply to Narayan.

Imagine you open a network service on your linux desktop, let’s assume it is a web server running on port 80, and you want to expose this service to the internet.

You would have to add a port translation rule into your internet box to forward connections on your public ip to your linux desktop system. And the configuration in the box is static, you need a fixed and consistent ip addr on your internal network.

You achieve that either with static ip that you assign by yourself, or by configuring the dhcp server inside your internet box to reserve an ip associated to your linux destop mac address.

]]>
By: Pradeep Kumar https://www.linuxtechi.com/assign-static-ip-address-ubuntu-20-04-lts/#comment-20192 Thu, 14 May 2020 02:50:22 +0000 https://www.linuxtechi.com/?p=10423#comment-20192 In reply to Narayan.

Hi Narayan,
If your desktop is connected to the modem or a switch where DHCP server is configured with subnet “192.168.1.0/24”. So when your desktop tries to get ip from DHCP server then it will always picks one ip from the pool “192.168.1.2 – 192.168.1.254” . But if you want to map a fixed ip to desktop then you can assign that IP as static.

]]>