My Gateway is 192.168.0.1, so I made my static IP address 192.168.0.11.Netmask: Refer to the info you got from “ifconfig” and type in the same Netmask as what’s listed. When you’re ready, click “Save,” then go to the Terminal and type: You’ll now have a static IP configuration on your Ubuntu computer. It is not wrong to say that “Internet has become the basic necessity of our life”. If the DNS server is not configured properly or is stopped working then the user will not able to surf the internet.Tags: Production Schedule In Business PlanCollege Application Essay Examples HarvardJohn Dernbach Writing Essay ExamsMoney Is The Key To Happiness EssayGerman Essays Art HistoryIelts Essay On Overpopulation
The /etc/network/interfaces file is no longer used and instead a new network management utility called Netplan has taken its place.
Netplan's configuration files are found in /etc/netplan/. Open the default configuration file using your favorite text editor To configure a static IP address, where the IP is 192.1, subnet mask 255.255.255.0, default gateway is 192.168.43.1 and nameservers 192.168.43.1 & 220.127.116.11, replace this configuration with the configuration shown below # This file describes the network interfaces available on your system # For more information, see netplan(5).
network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: no addresses: [192.1/24] gateway4: 192.168.43.1 nameservers: addresses: [192.168.43.1,18.104.22.168]ip a 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback : brd : inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether :c0:7f:03 brd ff:ff:ff:ff:ff:ff inet 192.1/24 brd 192.1 scope global dynamic noprefixroute enp0s3 valid_lft 2317sec preferred_lft 2317sec inet6 fe80::a4ba:e64c:9105:f617/64 scope link noprefixroute valid_lft forever preferred_lft forever1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback : brd : 2: enp0s3: mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether :c0:7f:03 brd ff:ff:ff:ff:ff:ff Later on, check your IP configuration to verify the accuracy of the configuration.
If you want to revert back to DHCP, you can also follow the last step to accomplish that.
By default, the IP address of your computer – whatever it may be – is probably “dynamic.” It’s mostly a convenience thing because network admins (and less techy computer users) don’t need to go through the hassle of creating individual IP addresses for each computer on their network.