和之前的版本不太一样, 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

  

最新文章

  1. JavaScript中‘this’关键词的优雅解释
  2. Java反射机制学习与研究
  3. linux下route命令使用实战
  4. __new__ 的简单应用
  5. 启动Mysql时发生的一个关于PID文件错误问题
  6. win32 treeview
  7. table表格的属性
  8. ###《More Effective C++》- 异常
  9. 【转】C#中没有id 没有name C#怎么点击按钮
  10. apache的 .htaccess文件的常用配置
  11. 层层递进Struts1(六)自定义转换器
  12. iot 表 主键索引叶子块包含了表所有数据
  13. Android自己定义组件之日历控件-精美日历实现(内容、样式可扩展)
  14. C#设计模式(1)——单例模式(Singleton)
  15. JS-JS变量命名规则
  16. Arduino语法详解_含示例详解
  17. 《HTTP - http首部信息》
  18. python模块uuid产生唯一id
  19. HTTP报文头Accept和Content-Type总结
  20. Oracle分页(limit方式的运用)

热门文章

  1. java四种修饰符的限制范围
  2. 常见消息中间件之ActiveMQ
  3. Mysql探索之Explain执行计划详解
  4. MySQL手注之报错注入
  5. 3、JVM中的对象
  6. PyCharm-缩进 格式化代码
  7. VUE第一个项目怎么读懂
  8. #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
  9. C/C++常用头文件
  10. 1.入门篇十分钟了解Spring Cloud