Answers for "ubuntu set static ip ubuntu 22.04"

0

ubuntu server set static ip

/* Manual Configuration */
#open the /etc/network/interfaces file
` vim /etc/network/interfaces`
#add
iface enp0s3 inet static
	address `your ip 10.0.1.20/24`
    gateway '10.0.1.1`
    dns-nameservers 8.8.8.8
 #restart the server to apply changes
 `sudo systemctl restart`
 
 #verify
 `ip a`
 `ping google.com`
Posted by: Guest on April-22-2022
1

ubuntu 18.04 get public ip address

dig +short myip.opendns.com @resolver1.opendns.com
Posted by: Guest on April-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language