Skip to content

RohitArora7/IP-Static-and-Dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

IP-Static-and-Dynamic

cd /etc/netplan

Dynamic

network:
  ethernets:
    enp1s0:
      dhcp4: true
  version: 2

Static

network:
 ethernets:
  enp1s0:
    addresses:
     - 192.168.122.245/24
    gateway4: 192.168.122.1
    nameservers:
      addresses:
      - 8.8.8.8
      - 8.8.4.4
      search: []
 version: 2
sudo netplan apply 
sudo systemctl restart NetworkManager 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published