Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

new ip linux

Get new ip from DHCP (If not working, check your connection to router)
//Release ip
sudo dhclient -r [Interface name](optional)

//Renew ip
sudo dhclient [Interface name](optional)
Comment

set ip and name in linux

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
     dhcp4: no
     addresses: [192.168.2.2/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install software in linux terminal 
Shell :: make directory in linux 
Shell :: permission terminal ubuntu 
Shell :: codepush get keys 
Shell :: odoo run command line 
Shell :: how to get the vimrc path 
Shell :: go get all required packages 
Shell :: start with git and github 
Shell :: enter passphrase is asking for password 
Shell :: command to upgrade broken/not upgraded packages on Ubuntu 
Shell :: bash make folders according to a list 
Shell :: yacc install in kali linux 
Shell :: read input from multiple lines in BASH 
Shell :: vs code linux cache 
Shell :: undo commit after push 
Shell :: how to login as root user in kubernetes pod 
Shell :: create a directory and change to it command line 
Shell :: sed replace 
Shell :: cli50 
Shell :: sed output to file 
Shell :: vmware not working after ubuntu upgrade 
Shell :: ssh key exchange 
Shell :: printf in bash 
Shell :: postgresql.conf position 
Shell :: install with pip in jupyter 
Shell :: docker get in python container 
Shell :: git lfs 
Shell :: print next 10 lines after grep 
Shell :: cp with folder structure 
Shell :: docker network Rabbitmq 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =