Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


setting_static_ip_address_ubuntu_24_04

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
setting_static_ip_address_ubuntu_24_04 [2024/12/29 17:28] – [Setting a Static IP Address in Ubuntu 24.04] wikiadminsetting_static_ip_address_ubuntu_24_04 [2024/12/29 17:34] (current) – [Setting a Static IP Address in Ubuntu 24.04] wikiadmin
Line 3: Line 3:
 See: [[https://linuxconfig.org/setting-a-static-ip-address-in-ubuntu-24-04-via-the-command-line]] See: [[https://linuxconfig.org/setting-a-static-ip-address-in-ubuntu-24-04-via-the-command-line]]
  
-First Backup Your network configuration file containing DHCP.+First Backup Your network configuration file that contains your DHCP default.
  
 <code> <code>
-user@svr: cd /etc/netplan+user@svr: cd /etc/netplan [Enter]
  
-user@svr:/etc/netplan$ sudo cp 50-cloud-init.yaml  50-cloud-init.yaml-bak+user@svr:/etc/netplan$ ls [Enter] 
 +50-cloud-init.yaml
  
-user@svr:/etc/netplan$ ls+user@svr:/etc/netplan$ sudo cp 50-cloud-init.yaml  50-cloud-init.yaml-bak [Enter] 
 + 
 +user@svr:/etc/netplan$ ls [Enter]
 50-cloud-init.yaml  50-cloud-init.yaml-bak 50-cloud-init.yaml  50-cloud-init.yaml-bak
 </code> </code>
  
-Example Configuration of a Static IP.  Use Vim or Nano to edit 50-cloud-init.yaml+Example Configuration for a Static IP.  Use Vim or Nano to edit 50-cloud-init.yaml
  
 <code> <code>
 sudo vim 50-cloud-init.yaml sudo vim 50-cloud-init.yaml
 </code> </code>
 +
 +Edit the file according to the following example, but substituting your network name, Lan IP addresses, Routes (to your router's gateway), and your Nameservers rather than Google's.
  
 <code> <code>
setting_static_ip_address_ubuntu_24_04.1735493317.txt.gz · Last modified: 2024/12/29 17:28 by wikiadmin