Skip to content

galihroswandi/Setting-IP-Statis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Tutorials

Check the IP address used

  ip a

For check IP routes and gateway use command

  ip route show

Create configuration on cat /etc/netplan/01-network-manager-all.yaml and paste code here

  # Let NetworkManager manage all device on this system

  network:
    version: 2
    renderer: NetworkManager
    ethernets:
        0xxxxxxxxxxx:
            dhcp4: no
            addresses:
                - <choose-ip>/24
            routes:
                - to: default
                  via: <your-gateway4>
            nameservers:
                addresses:
                    - 8.8.8.8
                    - 8.8.4.4

Apply configuration with command

  sudo netplan apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published