Ubuntu 18.04 LTS IP 地址设置
2024-10-19 23:40:22
和之前的版本不太一样, Ubuntu 18.04 的 ip地址设置是用netplan管理的
配置文件在:
/etc/netplan/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:
ens33:
addresses: [192.168.123.205/24]
gateway4: 192.168.123.1
dhcp4: no
nameservers:
addresses: [223.5.5.5,223.6.6.6]
version: 2
最新文章
- JavaScript中‘this’关键词的优雅解释
- Java反射机制学习与研究
- linux下route命令使用实战
- __new__ 的简单应用
- 启动Mysql时发生的一个关于PID文件错误问题
- win32 treeview
- table表格的属性
- ###《More Effective C++》- 异常
- 【转】C#中没有id 没有name C#怎么点击按钮
- apache的 .htaccess文件的常用配置
- 层层递进Struts1(六)自定义转换器
- iot 表 主键索引叶子块包含了表所有数据
- Android自己定义组件之日历控件-精美日历实现(内容、样式可扩展)
- C#设计模式(1)——单例模式(Singleton)
- JS-JS变量命名规则
- Arduino语法详解_含示例详解
- 《HTTP - http首部信息》
- python模块uuid产生唯一id
- HTTP报文头Accept和Content-Type总结
- Oracle分页(limit方式的运用)
热门文章
- java四种修饰符的限制范围
- 常见消息中间件之ActiveMQ
- Mysql探索之Explain执行计划详解
- MySQL手注之报错注入
- 3、JVM中的对象
- PyCharm-缩进 格式化代码
- VUE第一个项目怎么读懂
- #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
- C/C++常用头文件
- 1.入门篇十分钟了解Spring Cloud