码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 18.04 使用固定ip

时间:2019-01-13 17:12:41      阅读:402      评论:0      收藏:0      [点我收藏+]

标签:ref   .com   分享   div   hang   Plan   from   follow   gate   


技术分享图片

csq@ubuntu_server_001:/etc/netplan$ cat 50-cloud-init.yaml
# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init‘s network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        enp0s3:
            addresses: [192.168.1.81/24,]
            gateway4: 192.168.1.1
            dhcp4: no
    version: 2

ubuntu 18.04 使用固定ip

标签:ref   .com   分享   div   hang   Plan   from   follow   gate   

原文地址:https://www.cnblogs.com/cs294639693/p/10263018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!