Ubuntu Static IPv4 Configuration
11/22/24Less than 1 minute
Ubuntu Static IPv4 Configuration
Modify the configuration file using sudo vim /etc/netplan/50-cloud-init.yaml
network:
ethernets:
ens33:
dhcp4: false # Disable DHCP
addresses:
- 192.168.83.150/24 # IP Address
gateway4: 192.168.83.1 # Gateway
nameservers:
addresses: [223.5.5.5,8.8.8.8] # DNS
version: 2Apply the changes with sudo netplan apply
AI Translation | AI 翻译
This article was translated from Chinese to English by AI. If there are any inaccuracies, please refer to the original Chinese version.
本文由 AI 辅助从中文翻译为英文。如遇不准确之处,请以中文原版为准。
