• 另外一种修改方式是直接配置网卡的参数

    # sudo vim /etc/netplan/00-installer-config.yaml

    修改下面内容,注意排版缩进

    # This is the network config written by ‘subiquity’
    network:
    ethernets:
    eno1:
    dhcp4: false
    gateway4: 192.168.10.1
    addresses: [192.168.10.2/24]
    nameservers:
    addresses: [119.29.29.29]
    eno2:
    dhcp4: true
    version: 2

WirelessLink
Logo