ip: either "local" is duplicate, or "/16" is garbage错误的解决
来源:互联网 发布:泛神论 知乎 编辑:程序博客网 时间:2024/06/05 22:31
今天在power pc上玩debian5.不知怎么回事,直接通过修改/etc/network下的interface文件来修改eth0的IP地址,但是却是无论如何也修改不了。下面是整个的操作:
[root@KAV network]# lsif-down.d/ if-post-down.d/ if-pre-up.d/ if-up.d/ interfaces interfaces.bak[root@KAV network]# cat interfaces# Configure Loopbackauto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 172.20.51.115 netmask 255.255.0.0auto eth1iface eth1 inet staticaddress 192.168.2.100netmask 255.255.255.0auto eth2iface eth2 inet staticaddress 192.168.3.100netmask 255.255.255.0auto eth3iface eth3 inet staticaddress 192.168.4.100netmask 255.255.255.0[root@KAV network]# ifdown eth0[root@KAV network]# ifup eth0ip: either "local" is duplicate, or "/16" is garbage[root@KAV network]#
1 将interface文件里最前面的eth0的配置项通通给删除掉。
2 在interface文件的最后面加上关于eth0的配置。格式如下:
[root@KAV network]# cat interfaces# Configure Loopbackauto loiface lo inet loopbackauto eth1iface eth1 inet staticaddress 192.168.2.100netmask 255.255.255.0auto eth2iface eth2 inet staticaddress 192.168.3.100netmask 255.255.255.0auto eth3iface eth3 inet staticaddress 192.168.4.100netmask 255.255.255.0auto eth0iface eth0 inet staticaddress 172.20.51.115 netmask 255.255.0.0
3 然后再如下命令操作即可:
[root@KAV network]# ifdown eth0[root@KAV network]# ifup eth0[root@KAV network]#
虽然不知什么原因,但是这样成功修改了IP地址。先这样记着先!
- ip: either "local" is duplicate, or "/16" is garbage错误的解决
- either "to" is duplicate or "" is a garbage的解决
- 解决 Must have one-pixel frame that is either transparent or white
- cannot be resolved or is not a field错误解决
- netbean中does not exist or is not a readable错误的解决
- netbean中does not exist or is not a readable错误的解决
- 解决安装magento时“Unable to read response, or response is empty” 的错误
- Jack is required to support java 8 language features. Either enable Jack o的解决
- #2002 - 服务器没有响应 (or the local MySQL server's socket is not correctly configured)解决
- SSISThe Address in the "To" line is malformed. It is either missing the "@" symbol or is not valid.
- 解决安装nginx 日志文件出现"fastcgi_pass" directive is duplicate 错误
- Java Is Not Python, either...
- 解决sensor or listener is null的问题
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- Linux 3.9.10内核编译错误:multiple (or no) load addresses: This is incompatible with uImages的解决
- 解决hadoop启动时的dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.错误
- Error:Must have one-pixel frame that is either transparent or white in Android Studio
- Error:Must have one-pixel frame that is either transparent or white.
- Eclipse各个版本区别
- 软件架构师书籍
- 程序员的十个等级 你属于哪个等级
- SQL Server 2000本地系统账户和域用户账户的选择
- Eclipse各个版本区别
- ip: either "local" is duplicate, or "/16" is garbage错误的解决
- java命令执行类,这里设置了classpath,系统变量里的classpath将失效
- 测试
- 男は失恋夜盗11台奔スポーツカーエンブレム腹いせ(写真)
- LInux进程控制与编程
- 正则表达式学习
- android获得手机照片,摄像,拍照,录音等功能并将其转为字符串
- 多份源文件和静态库的产生的悲剧
- RelativeLayout用到的一些重要的属性: