Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

configure static ip address ubuntu server 20.04

network:
  ethernets:
    enp0s3:
      addresses: [192.168.1.3/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [4.2.2.2, 8.8.8.8]
  version: 2
Comment

ubuntu server 20.04 ip configuration static

#go to file name can vary
sudo nano /etc/netplan/01-netcfg.yaml
# edit to
network:
  ethernets:
    enp0s3:
      dhcp4: false
      addresses: [192.168.50.195/24]
      gateway4: 192.168.50.254
      nameservers:
        addresses: [8.8.8.8]
#save
#apply with
sudo netplan apply
Comment

ubuntu 20.04 ifconfig public ip address

dig +short myip.opendns.com @resolver1.opendns.com
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install redis 
Shell :: how to reverse shell 
Shell :: how to generate ssh key 
Shell :: github ssh key 
Shell :: create folder with shell/bash 
Shell :: git pull if exist and clone 
Shell :: mkdir powershell 
Shell :: git reset a folder 
Shell :: linux show file line size 
Shell :: gitattributes 
Shell :: send post request webhook bash scipt 
Shell :: install redis 
Shell :: how to learn cuda version 
Shell :: redis ubuntu 
Shell :: how to add font in ubuntu 
Shell :: how to avoid nginx not found 404 error ubuntu react app 
Shell :: how to install jack client in ubuntu 
Shell :: linux ssh server 
Shell :: bash get current process id 
Shell :: How can I remove the first line of a text file using bash/sed script? 
Shell :: docker compose exec compose 
Shell :: see changes git command line 
Shell :: push to github from terminal 
Shell :: run mongodb on docker linux 
Shell :: platformio install arduino lib 
Shell :: bash adding floats 
Shell :: arch linux c# install 
Shell :: delete commit from github 
Shell :: Git - delete specific branch 
Shell :: move command in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =