免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-15 22:09 |只看该作者 |倒序浏览
是怎么回事?rc.net.out文件如下:
CMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072
inet0
sh: /etc/methods/cfgsea:  not found.
0821-003 cfgif: No interfaces were configured.
hostname1


是不是配置ip地址没有写入odm中。
用ifconfig和smitty tcpip都不行。奇了!!!
兄弟们给支个招。

论坛徽章:
0
2 [报告]
发表于 2006-01-15 22:40 |只看该作者
在rc.tcpip里dhcp没有启动。
hosts文件里有我配的地址和主机名
odmget CuDv 看到的en0和正常的主机没区别。

[ 本帖最后由 zhoug 于 2006-1-15 22:48 编辑 ]

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

论坛徽章:
0
4 [报告]
发表于 2006-01-16 06:12 |只看该作者
我一般都用smitty 配置ip,别的机器都正常。就这台奇了怪了。
在网上查了ifconfig是不会在odm中保存。但仔细看了rc.net文件每次起机时会运行一些命令。
下面这是rc.net的一部分
##################################################################
# Part II - Traditional Configuration.
##################################################################
# An alternative method for bringing up all the default interfaces
# is to specify explicitly which interfaces to configure using the
# ifconfig command.  Ifconfig requires the configuration information
# be specified on the command line.  Ifconfig will not update the
# information kept in the ODM configuration database.
#
# Valid network interfaces are:
# lo=local loopback, en=standard ethernet, et=802.3 ethernet
# sl=serial line IP, tr=802.5 token ring, xs=X.25
#
# e.g., en0 denotes standard ethernet network interface, unit zero.
#
# Below are examples of how you could bring up each interface using
# ifconfig.  Since you can specify either a hostname or a dotted
# decimal address to set the interface address, it is convenient to
# set the hostname at this point and use it for the address of
# an interface, as shown below:
#
#/bin/hostname robo.austin.ibm.com        >>$LOGFILE 2>&1
#
# (Remember that if you have more than one interface,
# you'll want to have a different IP address for each one.
# Below, xx.xx.xx.xx stands for the internet address for the
# given interface).  
#
#/usr/sbin/ifconfig lo0 inet loopback    up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig en0 inet `hostname`  up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig et0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig tr0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig sl0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig xs0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1
#
#
# Now we set any static routes.
#
# /usr/sbin/route add 0 gateway                 >>$LOGFILE 2>&1
# /usr/sbin/route add 192.9.201.0 gateway         >>$LOGFILE 2>&1

下面是正常机器的rc.net.out
CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig en4 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig en1 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig et1 -rfc1323 -tcp_mssdflt -tcp_nodelay -tcp_sendspace -tcp_recvspace
CMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072
inet0
sh: /etc/methods/cfgsea:  not found.
0821-003 cfgif: No interfaces were configured.
hostname2
0821-279 writing to routing socket: Cannot reach the destination network.
10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70
A file descriptor does not refer to an open file.
0821-103 : The command /usr/sbin/route add -net -hopcount 0      0 10.225.8.254 failed.
0821-279 writing to routing socket: Cannot reach the destination network.
10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70
A file descriptor does not refer to an open file.
0821-103 : The command /usr/sbin/route add -net -hopcount 0  0 10.225.8.254 failed.

正常的都会CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536

不知道chdev这个命令怎么配ip地址。chdev也是可以写入odm中的。
man chdev 只看到可以改变属性。不知能不能配ip地址。

[ 本帖最后由 zhoug 于 2006-1-16 06:59 编辑 ]

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

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

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

回复 5楼 wolsey 的帖子

ifconfig 是不写odm的。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
8 [报告]
发表于 2006-01-17 00:31 |只看该作者
你的AIX版本多少?

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

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

v5.3-03

不知用这个命令行不行明天试试
smitty tcpip 配完ip
chdev en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536

[ 本帖最后由 zhoug 于 2006-1-17 01:09 编辑 ]

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP