开发板设置静态ip的方法
来源:互联网 发布:单片机程序怎么烧录 编辑:程序博客网 时间:2024/05/17 23:51
开发板设置静态ip和linux设置静态ip是一个问题。
1. 更改网络接口配合文件
具体位置在 /etc/network/interfaces
在最后,或者找到auto eth0,我们将
auto eth0
iface eth0 inet dhcp更改成iface eth0 inet static
address 192.168.1.xx
netmask 255.255.255.0
network 192.168.0.0 [这里是非必须的]
gateway 192.168.0.200 [这里是非必须的]
2. 更改开机启动后执行的脚本(如果有的话)
添加如下
#!/bin/sh
echo ifconfig eth0
ifconfig eth0 172.16.8.203 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 up
echo ifconfig lo
ifconfig lo 127.0.0.1 netmask 255.0.0.0
ifconfig lo down
ifconfig lo up
echo ifconfig eth0
ifconfig eth0 172.16.8.203 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 up
echo ifconfig lo
ifconfig lo 127.0.0.1 netmask 255.0.0.0
ifconfig lo down
ifconfig lo up
3. 当然如果你是临时的想改一下,当重启后恢复默认,可以如下
> ifconfig eth0 10.150.11.2 netmask 255.254.0.0
阅读全文
1 0
- 开发板设置静态ip的方法
- Ubuntu设置静态IP的方法
- ubuntu设置静态IP的方法
- ubuntu 12.04 静态ip的设置方法
- Ubuntu 12.04 静态ip的设置方法
- ubuntu设置静态ip的方法
- Ubuntu 12.04 静态ip的设置方法
- Ubuntu 12.04 静态ip的设置方法
- Ubuntu静态ip的设置方法
- Ubuntu 12.04 静态ip的设置方法
- Ubuntu 12.04 静态ip的设置方法
- Ubuntu 12.04 静态ip的设置方法
- ubuntu 12.04 静态ip的设置方法
- ubuntu linux设置静态ip的方法
- LINUX下设置静态IP的方法
- ARM开发板修改设置静态IP
- ARM开发板修改设置静态IP
- Ubuntu设置静态ip方法
- js预解析规则
- mysql5.7主从复制配置
- FTP 代理过程分析
- UVa 免费糖果(记忆化搜索)
- Qt软件开启闪屏
- 开发板设置静态ip的方法
- easyUI dataGrid 列表分页使用
- ubuntu中eclipse环境下import cv2后opencv函数调用失败问题解决办法
- [leetcode] 398. Random Pick Index
- 浅谈Log4j和Log4j2的区别
- 3. Android工程中使用FFmpeg的so库 -- JNI头文件的生成
- php 中级程序员的进阶之路
- 实战Java高并发程序设计-02几个重要概念
- GIT基本操作命令大全