免费注册 查看新帖 |

Chinaunix

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

p550 配置ip地址后重新启动系统后ip丢失? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-15 22:09 |只看该作者 |倒序浏览
是怎么回事?rc.net.out文件如下:\r\nCMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072 \r\ninet0\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 cfgif: No interfaces were configured.\r\nhostname1\r\n\r\n\r\n是不是配置ip地址没有写入odm中。\r\n用ifconfig和smitty tcpip都不行。奇了!!!\r\n兄弟们给支个招。

论坛徽章:
0
2 [报告]
发表于 2006-01-16 01:27 |只看该作者
配置时有没有报错?ifconfig 配置是不会保存的\r\n但smit是可以的

论坛徽章:
0
3 [报告]
发表于 2006-01-16 06:12 |只看该作者
我一般都用smitty 配置ip,别的机器都正常。就这台奇了怪了。\r\n在网上查了ifconfig是不会在odm中保存。但仔细看了rc.net文件每次起机时会运行一些命令。\r\n下面这是rc.net的一部分\r\n##################################################################\r\n# Part II - Traditional Configuration.\r\n##################################################################\r\n# An alternative method for bringing up all the default interfaces \r\n# is to specify explicitly which interfaces to configure using the\r\n# ifconfig command.  Ifconfig requires the configuration information \r\n# be specified on the command line.  Ifconfig will not update the\r\n# information kept in the ODM configuration database.\r\n#\r\n# Valid network interfaces are:\r\n# lo=local loopback, en=standard ethernet, et=802.3 ethernet\r\n# sl=serial line IP, tr=802.5 token ring, xs=X.25\r\n#\r\n# e.g., en0 denotes standard ethernet network interface, unit zero.\r\n#\r\n# Below are examples of how you could bring up each interface using\r\n# ifconfig.  Since you can specify either a hostname or a dotted\r\n# decimal address to set the interface address, it is convenient to\r\n# set the hostname at this point and use it for the address of \r\n# an interface, as shown below:\r\n#\r\n#/bin/hostname robo.austin.ibm.com        >>$LOGFILE 2>&1\r\n#\r\n# (Remember that if you have more than one interface, \r\n# you\'ll want to have a different IP address for each one.\r\n# Below, xx.xx.xx.xx stands for the internet address for the \r\n# given interface).  \r\n#\r\n#/usr/sbin/ifconfig lo0 inet loopback    up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig en0 inet `hostname`  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig et0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig tr0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig sl0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig xs0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#\r\n#\r\n# Now we set any static routes.\r\n#\r\n# /usr/sbin/route add 0 gateway                 >>$LOGFILE 2>&1\r\n# /usr/sbin/route add 192.9.201.0 gateway         >>$LOGFILE 2>&1\r\n\r\n下面是正常机器的rc.net.out\r\nCMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig en4 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig en1 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig et1 -rfc1323 -tcp_mssdflt -tcp_nodelay -tcp_sendspace -tcp_recvspace \r\nCMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072 \r\ninet0\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 cfgif: No interfaces were configured.\r\nhostname2\r\n0821-279 writing to routing socket: Cannot reach the destination network.\r\n10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70\r\nA file descriptor does not refer to an open file.\r\n0821-103 : The command /usr/sbin/route add -net -hopcount 0      0 10.225.8.254 failed.\r\n0821-279 writing to routing socket: Cannot reach the destination network.\r\n10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70\r\nA file descriptor does not refer to an open file.\r\n0821-103 : The command /usr/sbin/route add -net -hopcount 0  0 10.225.8.254 failed.\r\n\r\n正常的都会CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\n\r\n不知道chdev这个命令怎么配ip地址。chdev也是可以写入odm中的。\r\nman chdev 只看到可以改变属性。不知能不能配ip地址。\n\n[ 本帖最后由 zhoug 于 2006-1-16 06:59 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-01-16 17:29 |只看该作者
ifconfig en0 10.10.10.10 netmask 255.255.255.0 up这样不行吗????

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
5 [报告]
发表于 2006-01-16 17:32 |只看该作者
从维护模式到多用户模式时可能会丢失IP地址

论坛徽章:
0
6 [报告]
发表于 2006-01-16 20:40 |只看该作者

回复 5楼 wolsey 的帖子

ifconfig 是不写odm的。

论坛徽章:
0
7 [报告]
发表于 2006-01-17 01:04 |只看该作者

回复 8楼 系统工程师 的帖子

v5.3-03\r\n\r\n不知用这个命令行不行明天试试\r\nsmitty tcpip 配完ip\r\nchdev en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536\n\n[ 本帖最后由 zhoug 于 2006-1-17 01:09 编辑 ]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
8 [报告]
发表于 2006-01-17 02:53 |只看该作者
一台 M80老机器,初装5.2.0.3 也是出现你这个问题,升级为5.2.0.6,问题依旧,最后升级到5.2.0.7  问题解决!

论坛徽章:
0
9 [报告]
发表于 2006-01-17 10:36 |只看该作者
或者可以看一下RC.TCPIP和RC.NET这两个文件的权限,可能是权限不够无法配置网络

论坛徽章:
0
10 [报告]
发表于 2006-01-17 13:51 |只看该作者
原帖由 zhoug 于 2006-1-15 22:09 发表\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 c ...
\r\n关键在这里啊,这个methods找不到,所以在cfgmgr的时候会无法配置全部的信息啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP