Netplan has significantly changed the way we adjust networking on ubuntu server.
An example of changing from dhcp (default) to static IP address:
sudo nano /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: no
dhcp6: no
addresses: [192.168.0.222/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1]
sudo netplan apply
Thursday, September 20, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment