【linux】给linux开发板配置重启后依然有效的静态IP的方法。

亲测有效!

  1. 使用vi打开/etc/profile文件。
vi /etc/profile
  1. 在/etc/profile中增加如下代码行:
ifconfig eth0 192.168.0.200 netmask 255.255.255.0 up
  1. 保存修改后,重启开发板,OK!
发布了206 篇原创文章 · 获赞 12 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_43248127/article/details/104020080