如何为 Ubuntu 24.04 LTS 设置固定 IP 地址 (图形界面 / 命令行)

https://www.sysgeek.cn/set-static-ip-ubuntu/

点击查看代码
network:
    renderer: networkd
    ethernets:
        ens33:
            dhcp4: false
            dhcp6: false
            addresses: [192.168.100.122/24]
            routes:
              - to: default
                via: 192.168.100.1
            nameservers:
                addresses: [192.168.100.1]
                search: []
    version: 2
posted @ 2024-08-30 18:03  小黙互动  阅读(220)  评论(0编辑  收藏  举报