ubuntu和arm开发板设置静态ip

来源:互联网 发布:Excel图表突出数据 编辑:程序博客网 时间:2024/05/18 00:43

目录

  • 目录
  • 前言
  • ubuntu1604中设置静态ip的方法
  • 开发板中设置静态ip的方法

前言

因为嵌入式开发中,经常要用到桥接、设置静态ip的问题,这里总结一下,算是备忘录吧!

ubuntu16.04中设置静态ip的方法

参见Ubuntu16.04下设置桥接的方法
后续如果使用命令行的方式,也会在上述博客中补充

开发板中设置静态ip的方法

  1. 打开/etc/network/interfaces
vi /etc/network/interfaces

原来的内容:

# Configure Loopbackauto loiface lo inet loopbackauto eth0iface eth0 inet dhcp

修改如下:

# Configure Loopbackauto loiface lo inet loopbackauto eth0#iface eth0 inet dhcpiface eth0 inet staticaddress 192.168.1.90gateway 192.168.1.1network 192.168.1.1netmask 255.255.255.0

然后重启