tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
22 stars 1 forks source link

netplan #65

Open tiancheng91 opened 1 year ago

tiancheng91 commented 1 year ago
# This is the network config written by 'subiquity'
network:
  ethernets:
    eth0:
      addresses:
      - 192.168.0.11/24
      gateway4: 192.168.0.10
      nameservers:
        addresses:
        - 192.168.0.10
        search: []
  version: 2
# dhcp 
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: true
tiancheng91 commented 1 year ago
echo ' ' > /etc/netplan/config.yaml
sudo netplan apply