目录
前言
因为嵌入式开发中,经常要用到桥接、设置静态ip的问题,这里总结一下,算是备忘录吧!
ubuntu16.04中设置静态ip的方法
参见Ubuntu16.04下设置桥接的方法
后续如果使用命令行的方式,也会在上述博客中补充
开发板中设置静态ip的方法
- 打开/etc/network/interfaces
vi /etc/network/interfaces
原来的内容:
# Configure Loopback
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
修改如下:
# Configure Loopback
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.90
gateway 192.168.1.1
network 192.168.1.1
netmask 255.255.255.0
然后重启