Jump to content

Search the Community

Showing results for tags 'static ip'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Ubuntu
    • Server
  • RHEL
    • Server
  • Proxmox
    • Server
  • Nextcloud
    • Server
  • Plex Media Server
    • Server
  • Docker
    • Apps

Categories

  • Ubuntu
  • RHEL
  • Proxmox
  • Nextcloud
  • Plex
  • Wazuh SIEM

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 2 results

  1. Setting a static IP for your headless server is a must. Here are the simple steps to accomplishing this. navigate to the interfaces file /etc/netplan sudo nano /etc/netplan Here is an example of what mine looks like. # This is the network config written by 'subiquity' network: ethernets: ens18: addresses: [192.168.1.204/24] routes: - to: default via: 192.168.1.99 nameservers: addresses: [8.8.8.8, 8.8.4.4] version: 2 pre-up iptables-restore < /etc/iptables.rules post-down iptables-save > /etc/iptables.rules Save and close The last two lines pre-up and post-down is for iptables. remove those lines if you are not using the firewall. To apply the changes: sudo netplan apply If you want to verify that you are using the correct DNS: Use this command after you add/change your dns to restart systemd-resolved service. sudo systemctl restart systemd-resolved Use this command to verify the DNS routing. sudo resolvectl status
  2. Configure static IP address using Netplan Netplan network configuration had been first introduced to Ubuntu 18.04 LTS Bionic Beaver. It is available to all new Ubuntu 18.04 installations. Ubuntu Server To configure a static IP address on your Ubuntu 20.04 server you need to modify a relevant netplan network configuration file within /etc/netplan/ directory. This static configuration has been depreciated 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 This is the new static configuration. network: ethernets: enp0s3: addresses: [192.168.1.3/24] routes: - to: default via: 192.168.1.99 nameservers: addresses: [4.2.2.2, 8.8.8.8] version: 2 Once ready apply changes with: $ sudo netplan apply In case you run into some issues execute: $ sudo netplan --debug apply
×
×
  • Create New...