ubuntu 18.04 使用固定ip
Posted cs294639693
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 18.04 使用固定ip相关的知识,希望对你有一定的参考价值。
[email protected]_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的主要内容,如果未能解决你的问题,请参考以下文章