免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1035 | 回复: 3
打印 上一主题 下一主题

紧急:更改IP地址报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-03 20:45 |只看该作者 |倒序浏览
环境redhat ASEL2.1
更改IP
报错如下:
Traceback (innermost last):
  File "/usr/sbin/neat", line 1210, in ?
    gtk.mainloop()
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2608, in mainloop
    _gtk.gtk_main()
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/sbin/neat", line 392, in on_applyButton_clicked
    self.save()
  File "/usr/sbin/neat", line 271, in save
    self.saveHardware()
  File "/usr/sbin/neat", line 283, in saveHardware
    hardwarelist.save()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCHardwareList.py", line 276, in save
    modules.write()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 981, in write
    self[key] = self.vars[key]
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 936, in __setitem__
    replace = key + ' ' + varname + ' ' + endofline
TypeError: illegal argument type for built-in operation

Local variables in innermost frame:
endofline: None
value: {'alias': None}
self: <netconfpkg.NCHardwareList.MyConfModules instance at 844e338>;
varname: eth1
missing: 1
key: alias
place: 0
findexp: [         ]*alias[         ]+eth1[         ]+

无法更改IP

望帮助!

论坛徽章:
0
2 [报告]
发表于 2004-04-03 20:51 |只看该作者

紧急:更改IP地址报错

it seem something wrong for the configuration tool, try other tool like "webmin" or "netconf", if you really want to force ip up, then do :

ifconfig eth0 down
ifconfig eth0 10.0.0.1 netmask 255.255.255.0

change the ip and netmask for your server.

hope it help

论坛徽章:
0
3 [报告]
发表于 2004-04-03 20:53 |只看该作者

紧急:更改IP地址报错

从提示上看是个bug,但是没有找到修复bug的补丁在哪里?

论坛徽章:
0
4 [报告]
发表于 2004-04-04 08:39 |只看该作者

紧急:更改IP地址报错

thanks!

you are right!

no other configuration ,then I do it following your command.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP