ubuntu20.04设置静态ip地址(包括不同版本)

2020-06-03  本文已影响0人  Then丶
vim /etc/netplan/01-network-manager-all.yaml

# Let NetworkManager manage all devices on this system
network:
 version: 2
 renderer: NetworkManager
 ethernets:
     ens33:
        dhcp4: no
        addresses: [192.168.65.106/24]
        gateway4: 192.168.60.253
        nameservers:
            addresses: [8.8.8.8,114.114.114.114]

netplan --debug apply

原文: https://www.jb51.net/article/187746.htm

上一篇下一篇

猜你喜欢

热点阅读