Answers for "assign static ip to interface ubuntu"

0

ubuntu get external ip

curl -s https://checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
Posted by: Guest on July-24-2021
1

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

Code answers related to "assign static ip to interface ubuntu"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language